|
[
Permalink
| « Hide
]
John Casey added a comment - 18/Sep/08 03:17 PM
This is the test project structure I tried, but I cannot reproduce the issue. Can you try and/or modify this test project so it will fail, and re-attach it? Otherwise, I'm going to have to close this one as CANNOT REPRODUCE.
JD,
I was able to reproduce the issue on your example with simple change which resembles my code: --- E:/Downloads/massembly-309/src/main/assembly/bin.xml Fri Sep 19 13:53:05 2008
+++ E:/massembly-309/src/main/assembly/bin.xml Fri Sep 19 13:50:47 2008
@@ -1,13 +1,13 @@
<assembly>
<id>bin</id>
<formats>
- <format>dir</format>
+ <format>zip</format>
</formats>
<moduleSets>
<moduleSet>
<binaries>
<includeDependencies>false</includeDependencies>
- <outputFileNameMapping>module-${module.artifactId}-${module.version}.${module.extension}</outputFileNameMapping>
+ <outputFileNameMapping>module-${artifactId}-${version}.${extension}</outputFileNameMapping>
<unpack>false</unpack>
</binaries>
</moduleSet>
@@ -15,7 +15,7 @@
<binaries>
<attachmentClassifier>javadoc</attachmentClassifier>
<includeDependencies>false</includeDependencies>
- <outputFileNameMapping>module-${module.artifactId}-${module.version}-${module.classifier}.${module.extension}</outputFileNameMapping>
+ <outputFileNameMapping>module-${artifactId}-${version}-${classifier}.${extension}</outputFileNameMapping>
<unpack>false</unpack>
</binaries>
</moduleSet>
After that I added "module." to my bin.xml and it resolved the issue somewhat. This simply means that omitting the "module." does cause an interpolation error. I omitted the "module." because the documenation for the asssembly plugin told me so. we had to change the behavior of ${artifactId} and ${version} to be consistent with the rest of the descriptor (i.e. to reference the project currently being built). To make these expressions more intuitive, we're using ${artifact.artifactId} or ${module.artifactId} in the case of a module binary instead.
I've noted this as an area where the documentation needs to be updated in MASSEMBLY-151. John,
I commented on #151 too. Thanks for your help. I have made some tests and you are right. The interpolation behavior between beta 1 and beta 2 has changed! The site problem is gone after I have changed <moduleSet>
<sources>
<includeModuleDirectory>false</includeModuleDirectory>
<fileSets>
<fileSet>
<outputDirectory>
site/${artifactId}
</outputDirectory>
<directory>target/site</directory>
</fileSet>
</fileSets>
</sources>
</moduleSet>
to <moduleSet>
<sources>
<includeModuleDirectory>false</includeModuleDirectory>
<fileSets>
<fileSet>
<outputDirectory>
site/${module.artifactId}
</outputDirectory>
<directory>target/site</directory>
</fileSet>
</fileSets>
</sources>
</moduleSet>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||