Can spread

I am distributing a jar file with related libraries, media, documentation, etc. I would like to create a simple deb / rpm package for linux users, and I would also like to distribute it for windows. What is the best way to create a jar to play well with debuts? Each deb file that I have looked at so far has been c / C ++ with a make file, which is not at all useful. How to pack java jar for distribution?

Edit It would be nice if it could automate the placement of conf files in the / etc / project -name / sample.conf file, the icons in / usr / share, etc.

+5
source share
3 answers

Maven 2 DEB Debian , JAR. Debian Linux- Debian, Ubuntu Knoppix.


...
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>deb-maven-plugin</artifactId>
    <configuration>
        <description>A test project</description>
        <maintainer>Tim OBrien &lt;tobrien@discursive.com&gt;</maintainer>
        <section>libs</section>
        <priority>optional</priority>     
        <architecture>all</architecture>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>deb</goal>
            </goals>
        </execution>
    </executions>
</plugin>
...
+1

.

+1

To package your Java application as a Debian package, I would recommend jdeb . It is very flexible and integrates well with Maven and Ant.

0
source

All Articles