You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "fabrice (JIRA)" <ji...@codehaus.org> on 2009/06/19 11:01:15 UTC
[jira] Commented: (MASSEMBLY-425) Inconsistant inheritance
[ http://jira.codehaus.org/browse/MASSEMBLY-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180891#action_180891 ]
fabrice commented on MASSEMBLY-425:
-----------------------------------
I use M2eclipse 0.9.5
It is the reason of the error.
When I use Maven 2.0.9 in command line, effective-pom said me Maven assemvbly plugin is 2.2-beta-2 so version is not needed and it works but with m2eclipse it uses 2.2-beta-1 and I must specify => version in my child pom.
> Inconsistant inheritance
> ------------------------
>
> Key: MASSEMBLY-425
> URL: http://jira.codehaus.org/browse/MASSEMBLY-425
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-1, 2.2-beta-2
> Environment: mvn 2.0.9 jdk1.5
> Reporter: fabrice
>
> Hi
> A concret example is easy to understand :
> My superPom contains :
> <pluginManagement>
> <plugins>
> ...
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>com.almerys.assemblies</groupId>
> <artifactId>
> My-jar-assembly-descriptor
> </artifactId>
> <version>1.0.0.0.3</version>
> </dependency>
> </dependencies>
> <executions>
> <execution>
> <id>make-assembly</id>
> <phase>package</phase>
> <goals>
> <goal>single</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ....
> </pluginManagement>
> And a child project overwritte the plugin conf to specify the assembly.xml that is placed in My-jar-assembly-descriptor. But In this way I can specify another assembly.xml that the default (in My-jar-assembly-descriptor)
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <configuration>
> <descriptors>
> <descriptor>
> assembly.xml
> </descriptor>
> </descriptors>
> </configuration>
> </plugin>
> I have the error bellow :
> Reason: Error reading assemblies: Error locating assembly descriptor file: D:\workspace7.5\BatchAGLBPS\assembly.xml
> Ok but if in my child I add for exemple the version (anyone it does not matter) it works ! assembly plugin find the assembly.xml in my-jar-descriptor !
> <version>2.2-beta-2</version> for instance
> I do not understand is a bug ?
> Fabrice
> When I do a help:effective-pom I have my maven that say it uses 2.2-beta-1 in the pluginManagment section and 2.2-beta-2 in the child...
--
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