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