maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: question about sharing assembly descriptor
Date Tue, 03 Jun 2014 06:52:48 GMT
Create a third modul with just the assembly descriptor:
http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html

/Anders


On Mon, Jun 2, 2014 at 11:16 PM, Mingliang Qi <qmlmoon@gmail.com> wrote:

> Hello *,
>         I have a problem when using the sharing assembly descriptors.
> Let’s say i have a directory structure loos like:
>
> module-A
>     +-- src
>     |   `-- main
>     |       `-- resources
>     |           `-- assemblies
>     |               `-- myassembly.xml
>     `— pom.xml
> module-B
>     `—pom.xml
>
>
> module-B’s pom.xml wants to use the descriptor in module-A, which could be
> done by adding module-A as a dependency on the assembly plugin then use the
> descriptorRefs. But the problem is I already has module B as a dependency
> in module-A. so this will lead to a cyclic reference.
>
> If i do without the dependency and just use the descriptor directly will
> also lead to wrong base directory for the descriptor.(the base directory
> for myassembly.xml will be module-B)
>
> How can i use the shared assembly descriptor in this case properly?
>
> Best,
> Mingliang
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message