<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <id>attach-artifact</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <zip destfile="target/webroot.zip" basedir="${target.webroot.dir}" includes="**/*" /> <zip destfile="target/wasroot.zip" basedir="${target.wasroot.dir}" includes="**/*" /> </target> </configuration> </execution> </executions> </plugin>