Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the best practices regarding deb package making in pom.xml? [closed]

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.

like image 846
Yurii B Avatar asked Nov 17 '25 11:11

Yurii B


1 Answers

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

like image 78
Praveen Kumar Avatar answered Nov 20 '25 00:11

Praveen Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!