This project provides a maven plugin for packaging maven projects to different targets. It supports on-the-fly generation of .deb, .ipk archives as well as the generation of IzPack-installer.
One of the goal of this plugin was the clean handling of maven dependencies. For the distribution specific packaging targets, the plugin is able to translate the maven dependencies to platform specific (e.g. debian dependencies).
<plugin>
<!--
This goal allows us to get the EAR from the repository for deployment and install it locally
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<!-- same group -->
<groupId>${project.groupId}</groupId>
<artifactId>your_artifact_name</artifactId>
<type>ear</type>
<overWrite>true</overWrite>
<destFileName>your_artifact_name.ear</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>