I don't about bug or not but I have this nagging feeling that if you
limited yourself to:
<include>foo:bar-rpt:jar</include>
it would work?

On Tue, Jun 22, 2010 at 12:48 AM, Adrian Shum <[email protected]> wrote:
> 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.
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to