[ http://jira.codehaus.org/browse/MPPLUGIN-3?page=all ]
Arnaud Heritier closed MPPLUGIN-3:
----------------------------------
Resolution: Fixed
Fixed. maven.override.* properties are integrated to the POM
> Resolve project.xml inheritance when installing plugin
> ------------------------------------------------------
>
> Key: MPPLUGIN-3
> URL: http://jira.codehaus.org/browse/MPPLUGIN-3
> Project: maven-plugin-plugin
> Type: Improvement
> Reporter: Vincent Massol
> Assignee: Arnaud Heritier
> Fix For: 1.7
>
>
> Problem analysis:
> -----------------
> Let's imagine I have the following in a plugin I'm writing:
> <project>
> <extend>${basedir}/../../default-project.xml</extend>
> <id>cactus-maven</id>
> <name>Maven Cactus plugin</name>
> [...]
> <dependencies>
> <dependency>
> <groupId>cactus</groupId>
> <artifactId>cactus</artifactId>
> <version>13-${pom.currentVersion}</version>
> </dependency>
> [...]
> Note that the project.xml extends another POM and that the currentVersion is
> inherited from default-project.xml
> If I type "maven plugin:install", the installed plugin will not work as its
> project.xml will be parsed at runtime and the dependencies will not be able
> to be resolved as default-project.xml would not be available.
> Solution:
> ---------
> One solution is of course to forbid inheritance in plugins. However, that's
> not nice as a plugin is a maven project which can be part of a more global
> project.
> A better solution IMO would be that plugin:install will rewrite the full
> project.xml, including the inherited items. This modified project.xml will
> get package in the plugin jar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]