Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2-beta-1
-
Fix Version/s: 2.2-beta-3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
If <outputFileNameMapping> maps two or more artifacts into the same name, it needs to be reported as an error.
Maven currently just takes the last one without reporting anything, and as a result I didn't notice that my assembly descriptor had a problem until I debug the plugin source code.
This problem is particularly made worse by a broken jar-with-dependencies example in the documentation, which says:
<dependencySets>
<dependencySet>
<outputDirectory></outputDirectory>
<outputFileNameMapping></outputFileNameMapping>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
... which maps every dependency to ""
Attachments
Issue Links
| This issue depends upon: | ||||
| MASSEMBLY-285 | regression: duplicate files added to the assembly |
|
|
|
A little patch for archive duplicity.
When archiver contains artifacts file, exception is thrown