You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2005/10/02 03:08:19 UTC

[jira] Commented: (MPPLUGIN-3) Resolve project.xml inheritance when installing plugin

    [ http://jira.codehaus.org/browse/MPPLUGIN-3?page=comments#action_47598 ] 

Arnaud Heritier commented on MPPLUGIN-3:
----------------------------------------

using the artifact plugin code, the generated pom doesn't have hardcoded paths.
but this plugin will now need maven 1.1 (needed by the artifact plugin).
the last thing to do is to use override properties when they are defined...

> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org