Version for artifacts in dependencies section are resolved wrong
----------------------------------------------------------------
Key: MASSEMBLY-469
URL: http://jira.codehaus.org/browse/MASSEMBLY-469
Project: Maven 2.x Assembly Plugin
Issue Type: Bug
Affects Versions: 2.2-beta-3
Environment: Windows, Java6, maven-2.2.1
Reporter: Christoph Panwinkler
Dependencies to artifacts are resolved wrongly when using maven-assembly-plugin
> 2.2-beta-2 (this still exists in Version 2.2-beta-5):
a) Goal mvn assembly:assembly
b) Descriptor
<assembly>
<id>service-wrapper</id>
<formats>
<format>zip</format>
</formats>
<baseDirectory>${project.name}</baseDirectory>
<includeBaseDirectory>true</includeBaseDirectory>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<scope>compile</scope>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
...
</assembly>
e.g.
We have version test-1.0.jar in parent pom.
We overwrite this version with test-1.1.jar in current pom
1) 2.2-beta-3 >= maven-assembly-plugin <= 2.2-beta-5
test-1.0.jar is packaged in zip-File
2) maven-assembly-plugin < 2.2-beta-2
test-1.1.jar is packaged in zip-File
=> Artifact test in this case should always be resolved to test-1.1.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