Hi, I am working on a project made up of a lot of other projects. It is set
up ,for example, as follows:

moduleA
moduleB
moduleD
parent
moduleE
moduleF
...
moduleX

As shown, the parent is within the child modules. I know this may seem
unusual but that is how it is and I have to work with it that way.

I am looking to use the Assembler plugin to find all of the dependencies
from the children and package them into a zip or jar, unpacked and all in
one folder.

This is what I have so far:

Assembly.xml

<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
  <id>package</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  
  <moduleSets>
        <moduleSet>
                
                <includes>
                        <include>com.example:../one</include>
                        <include>com.example2:../two</include>
                        <include>com.exampleX:../three</include>
                </includes>
                <binaries>
                        <unpack>false</unpack>
                </binaries>
        </moduleSet>
  </moduleSets>
  
  <dependencySets>
        <dependencySet>
                <unpack>false</unpack>
                <scope>runtime</scope>
                <outputDirectory>library/jars</outputDirectory>
        </dependencySet>
  </dependencySets>
</assembly>

 parent pom.xml
<plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                        <version>2.4</version>
                        <configuration>
                        <descriptors>
                                <descriptor>assembly.xml</descriptor>
                        </descriptors>
                        </configuration>
                </plugin>



--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Assembly-put-multi-module-dependencies-into-one-zip-tp5747420.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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

Reply via email to