Skip to content

Instantly share code, notes, and snippets.

@matheus-santos
Created March 24, 2015 18:48
Show Gist options
  • Save matheus-santos/556fc90b009318541e4c to your computer and use it in GitHub Desktop.
Save matheus-santos/556fc90b009318541e4c to your computer and use it in GitHub Desktop.
Building and running assembled Maven Project
# On the Maven project folder
# Compiling current mvn project and assembling it
# into a single .jar file. That way we can execute the
# project without running into 'class not found' errors.
# Ref: http://stackoverflow.com/a/574650/3147039
mvn clean compile assembly:single
# Running java program (generated snapshot from Maven project)
java -jar target/App-0.0.1-SNAPSHOT-jar-with-dependencies.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment