The following comment has been added to this issue:
Author: Vincent Massol
Created: Mon, 10 Nov 2003 11:17 AM
Body:
dIon, what I am suggesting is an improvement. It's not a bug.
---------------------------------------------------------------------
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
Fix Fors:
1.0-final
Versions:
1.0-rc2
Assignee:
Reporter: Vincent Massol
Created: Sat, 8 Nov 2003 10:57 AM
Updated: Mon, 10 Nov 2003 10:10 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]