Skip to content

Exporting a jar file for Release

Peter Colapietro edited this page Jun 17, 2015 · 9 revisions

Running the Maven "package" goal from the command line

mvn clean package

Creating a run configuration in Eclipse for the Maven "package" phase

A Maven run configuration for the "package" goal is necessary for taking the compiled code and packaging it in a runnable JAR. See screenshots below which detail how to create one.

Step 1. Right click on your Maven Project

exporting-a-jar-file-for-release-0

Step 2. Select "Maven Build" and create a new one.

exporting-a-jar-file-for-release-1

Step 3. Use the screenshot to create a run configuration for the package phase.

exporting-a-jar-file-for-release-2

The console view in Eclipse will display the output from running your Maven run configuration. This will detail where to find jars. The runnable jar is Makelangelo-{version.name}-jar-with-dependencies.jar NOT Makelangelo-{version.name}.jar

Where {version.name} is something like v7.1.0

Further readings

It is recommend to read over this tutorial.

Clone this wiki locally