I am using Maven to manage a console application project. On my machine, I type mvn exec:java
and Maven handles everything. What I want is, however, to execute the same application on a different machine without the help of Maven.
In NetBeans, Ant projects have a dist
directory with all the necessary files. All you have to do is to type java -jar dist/App.jar
. How can I make Maven generate such distributable directory or archive?
PS: Although seems relevant, this is not a duplicate of Create a standalone application with Maven.