I have my code packaged into a jar
The jar is packaged ok.
jar -tfv target/test-1.0-SNAPSHOT.jar
com/
com/codevalid/
com/codevalid/App.class
log4j.x
You can run a jar file using the exec:java goal by adding some arguments:
org.codehaus.mojo
exec-maven-plugin
1.3.2
org.example.Main
-jar
target/myJar-1.0-SNAPSHOT.jar
If you have an executable jar and don't want to define the entry point, you need to set the executable and use the exec:exec goal:
org.codehaus.mojo
exec-maven-plugin
1.3.2
java
-jar
target/myJar-1.0-SNAPSHOT.jar