There is pom.xml files hierarchy for some multi-modules project. I need to pack targets jars of modules into result deb package. How to have that implemented using jdeb or something else for deb package making with target jars inside (with postins, preinst scripts inside as well).
Another question for me: Does it make sense to put some "dep-package-making" plugin to top level pom? Alternative - another one sub-module project (fake project ) with its pom.xml inside inherited from top level pom.xml and putting that deb package maker plugin into it.
You can use the jdeb plugin in your maven build
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>0.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>deb</goal>
</goals>
</execution>
</executions>
or debian-maven-plugin for more information you can check out the usage page (documentation){http://debian-maven.sourceforge.net/usage.html}
example usage of the jdeb plugin can be found here: https://github.com/tcurdt/jdeb/blob/master/src/examples/maven/pom.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With