Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
java maven like young languages, javashell, mavenshell
  • create starter
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
  • add logic
nano src/main/java/com/mycompany/app/App.java
  • build
mvn clean package
  • run
mvn exec:java -Dexec.mainClass="com.mycompany.app.App"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment