Dear all,
Assume I have a multi-module project "foo:bar",
with several sub-modules, one of them is "foo:bar-rpt".
I made an assembly descriptor in foo:bar-rpt to
generate a jar with dependencies, with classifier
"uber", and the generation is hooked at the package
phase.
I try to create a assembly descriptor in foo:bar,
which will gather related modules and put in a
directory. Here is what it looks like:
<assembly>
<id>allModules</id>
<formats>
<format>dir</format>
</formats>
<moduleSets>
<moduleSet>
<includes>
<include>foo:bar-ear</include>
<include>foo:bar-rpt:jar:uber</include>
</includes>
<binaries>
<outputDirectory>modules/${artifactId}</outputDirectory>
<outputFileNameMapping>foo-${module.artifactId}-${module.version}${dashC
lassifier?}.${module.extension}</outputFileNameMapping>
<includeDependencies>false</includeDependencies>
<unpack>false</unpack>
</binaries>
</moduleSet>
</moduleSets>
</assembly>
However, it failed to include bar-rpt-VERSION-uber.jar.
Without defining classifier (i.e. <include>foo:bar-rpt</include>)
it works fine, but that's not what I want.
Did I misused moduleSet? or is it a bug?
I am using maven 2.2.1, JDK 1.5.0-12
Thanks a lot :)
Alien
This email is confidential. If you are not the intended recipient, please
delete it from your system and notify the sender immediately. Any unauthorized
use, disclosure, dissemination or copying of this email is prohibited. Taifook
Securities Group, its group companies and their content providers ("Parties")
shall not be responsible for the accuracy or completeness of this email or its
attachment, if any, which could contain virus, be corrupted, destroyed,
incomplete, intercepted, lost or arrive late. The Parties do not accept
liability for any damage caused by this email.