You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/11/08 17:58:06 UTC

[jira] Created: (MAVEN-1011) Resolve project.xml inheritance when installing plugin

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1011


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1011
    Summary: Resolve project.xml inheritance when installing plugin
       Type: Improvement

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             plugin-plugin
   Versions:
             1.0-rc2

   Assignee: 
   Reporter: Vincent Massol

    Created: Sat, 8 Nov 2003 10:57 AM
    Updated: Sat, 8 Nov 2003 10:57 AM

Description:
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.



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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