1JAR Maven Plugin

The original project was the onejar-maven-plugin project ( http://www.dstovall.org/onejar-maven-plugin/index.html ). I have download and modify the sources and send a mail to the author (Drew Stovall). My hope was: Drew will be merge the sources but i does not received a answer for a long time. So i have renamed the project and published the modified sources under the 1jar-maven-plugin project.

The main function of the 1jar-maven-plugin is to support a standard deployment for the one-jar technology of the One-Jar project on source-forge.

To Do

This is a list of things which are to do.

Error when starting your app?

If you get this error when starting your application:

	Boot: Warning: Unable to locate main/main.jar in the JAR file
	Exception in thread "main" java.lang.Exception:
	myproject-1.0-SNAPSHOT.one-jar.jar main class was not
	found (fix: add main/main.jar with a Main-Class manifest attribute, or
	specify -Done-jar.main.class=<your.class.name>),
	or use One-Jar-Main-Class in the manifest
	    at com.simontuffs.onejar.Boot.run(Boot.java:285)
	    at com.simontuffs.onejar.Boot.main(Boot.java:159)

Then you're either (a) not making your standard jar executable or (b) not providing a mainClass argument. Better messaging about this configuration error is in the works.


I think the one-jar must be an new package type for the future to satisfy the maven restrictions.