I have a project that contains a single module, and some dependencies. I\'d like to create a jar, in a separate directory, that contains the compiled module. In addition, I\
If you are working on spring/mvn project you can use this command:
mvn package -DskipTests
The jar file will be saved on target directoy.