I\'m creating a stand-alone Sava application with Spring, to handle the JDBC access. The application works fine on every test and I decided that I need a jar to be deployed
I found the error, the bug lies in an unfixed bug in the maven-assembly plugin. I used the following workaround:
First commented out the maven-assembly code in my pom. Then I copied the dependencies to a lib folder at the target using the maben-dependency-plugin:
org.apache.maven.plugins
maven-dependency-plugin
copy-dependencies
package
copy-dependencies
${project.build.directory}/lib
Then I used the maven-jar-plugin to setup my executable jar:
org.apache.maven.plugins
maven-jar-plugin
2.3.1
true
true
org.foo.myproject.App
development
${pom.url}
value
Finally I created a bash script that is deployed with the application that runs my app with its libs and any provided arguments:
java -cp lib/*:myproject-0.0.1-SNAPSHOT.jar org.foo.myproject.App $@
I should have built the app in python =/