I have a multi-module maven assembly for an enterprise project, structured as follows:
-- Parent -- Documentation -- Child1 -- src/main/java -- src/main/assembly/assembly.xml -- pom.xml -- Child2 -- src/main/java -- src/main/assembly/assembly.xml -- pom.xml -- pom.xml (parent project)
Child1 creates a war, and then the assembly loads the pier and adds 2 together to the zip.
Child 2 creates the jar and Tanuki service scripts, and then the assembly fastens them all.
I want to add these 2 zips and the contents of the Documentation folder to one inbox to provide to my clients.
To this end, I added a third module for assembling assemblies.
Assembly.xml is as follows:
<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>bin</id> <formats> <format>zip</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <moduleSets> <moduleSet> <includeSubModules>false</includeSubModules> <useAllReactorProjects>true</useAllReactorProjects> <includes> <include>org.test:Parent</include> </includes> <sources> <outputDirectoryMapping>.</outputDirectoryMapping> <fileSets> <fileSet> <directory>Documentation</directory> <includes> <include>README*</include> </includes> </fileSet> </fileSets> </sources> </moduleSet> <moduleSet> <includeSubModules>false</includeSubModules> <useAllReactorProjects>true</useAllReactorProjects> <includes> <include>org.test:child1</include> </includes> <binaries> <unpack>false</unpack> <includes> <include>*.zip</include> </includes> </binaries> </moduleSet> </moduleSets> </assembly>
The first part gets the documentation in zip OK, but the binary section does not work. If I do not specify what is included in the binary section, I get a jar and war in my last zip file. I do not want them in my last zip file since they are in child zippers.
How can I get my child to zip the last zip?
source share