outputFileNameMapping fails and includes parent's name
------------------------------------------------------
Key: MASSEMBLY-309
URL: http://jira.codehaus.org/browse/MASSEMBLY-309
Project: Maven 2.x Assembly Plugin
Issue Type: Bug
Affects Versions: 2.2-beta-2
Environment: Maven 2.0.9, JDK6, WinXP SP2 AND debian 4.0, Maven 2.0.8,
JDK6 AND Maven Embedder m2eclipse 0.9.1
Reporter: Michael Osipov
Priority: Critical
Attachments: broken_example.png, expected_example.png
I have created a bin assembly descriptor containing:
{code}
<moduleSets>
<moduleSet>
<includes>
<include>*:jar</include>
</includes>
<binaries>
<includeDependencies>false</includeDependencies>
<outputFileNameMapping>
fckeditor-${module.artifactId}-${module.version}.${module.extension}
</outputFileNameMapping>
<unpack>false</unpack>
</binaries>
</moduleSet>
<moduleSet>
<includes>
<include>*:jar</include>
</includes>
<binaries>
<attachmentClassifier>javadoc</attachmentClassifier>
<includeDependencies>false</includeDependencies>
<outputFileNameMapping>
fckeditor-${module.artifactId}-${module.version}-${module.classifier}.${module.extension}
</outputFileNameMapping>
<unpack>false</unpack>
</binaries>
</moduleSet>
</moduleSets>
{code}
The expected zip distro should look like the expected attachment but sometimes
(80 %) the outcome is the broken example.
It seems like it does not resolves the module but the my parent. Browser my
source [here|http://dev.fckeditor.net/browser/FCKeditor.Java/branches/2.4] if
you like.
Interesting to say if the bin distro is fine, maven reports (note the parent
warning):
{code}
[INFO] [assembly:assembly]
[INFO] Reading assembly descriptor: src/main/assembly/src.xml
[INFO] Reading assembly descriptor: src/main/assembly/bin.xml
[INFO] Adding site directory to assembly : D:\workspace_\fckeditor-java\target\s
ite
[INFO] Processing sources for module project: net.fckeditor:java-demo:war:2.4-SN
APSHOT
[INFO] Processing sources for module project: net.fckeditor:java-core:jar:2.4-SN
APSHOT
[INFO] Building zip: D:\workspace_\fckeditor-java\target\fckeditor-java-2.4-SNAP
SHOT-src.zip
[WARNING] NOTE: Currently, inclusion of module dependencies may produce unpredic
table results if a version conflict occurs.
[WARNING] NOTE: Currently, inclusion of module dependencies may produce unpredic
table results if a version conflict occurs.
[INFO] Processing DependencySet (output=lib)
[WARNING] Cannot include project artifact: net.fckeditor:fckeditor-java:pom:2.4-
SNAPSHOT; it doesn't have an associated file or directory.
[INFO] Building zip: D:\workspace_\fckeditor-java\target\fckeditor-java-2.4-SNAP
SHOT-bin.zip
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] FCKeditor.Java Integration ............................ SUCCESS [32.797s]
[INFO] FCKeditor.Java Integration Core ....................... SUCCESS [15.203s]
[INFO] FCKeditor.Java Integration Demo Webapp ................ SUCCESS [4.609s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 2 seconds
[INFO] Finished at: Mon Apr 14 12:14:40 CEST 2008
[INFO] Final Memory: 18M/33M
[INFO] ------------------------------------------------------------------------
D:\workspace_\fckeditor-java>
{code}
--
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