datamaskin / onejar-maven-plugin

Automatically exported from code.google.com/p/onejar-maven-plugin
0 stars 0 forks source link

onejar-maven-plugin

Automatically exported from code.google.com/p/onejar-maven-plugin

Technique A - In addition to a 'regular' executable jar file

Just drop the following code into your pom.xml and run mvn package

org.apache.maven.plugins maven-jar-plugin com.mycompany.mypackage.MyMainClass org.dstovall onejar-maven-plugin 1.4.4 0.97 ${project.build.directory}/dllextract test.dll true onejar one-jar onejar-maven-plugin.googlecode.com http://onejar-maven-plugin.googlecode.com/svn/mavenrepo

Caveat

I wanted to get the latest version of this plugin out, and as a result I haven't spend the time to remove the warning from OneJar about a missing main/main.jar when this technique is used. I will be fixing this in the future, just not right now.

It (apparently) does not effect exectution and is just a warning.

The full text of the error is:

Boot: Warning: Unable to locate main/main.jar in the JAR file target/myproject-1.0-SNAPSHOT.one-jar.jar Technique B - Instead of a 'regular' executable jar file

Just drop the following code into your pom.xml and run mvn package

org.dstovall onejar-maven-plugin 1.4.4 com.mycompany.mypackage.MyMainClass 0.97 ${project.build.directory}/dllextract test.dll true onejar one-jar onejar-maven-plugin.googlecode.com http://onejar-maven-plugin.googlecode.com/svn/mavenrepo