Created
March 24, 2015 18:48
-
-
Save matheus-santos/556fc90b009318541e4c to your computer and use it in GitHub Desktop.
Building and running assembled Maven Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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