Skip to content

Instantly share code, notes, and snippets.

@humbertodias
Last active February 9, 2017 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save humbertodias/e09f16f1599489a3ea4bc274b8a34ed7 to your computer and use it in GitHub Desktop.
Save humbertodias/e09f16f1599489a3ea4bc274b8a34ed7 to your computer and use it in GitHub Desktop.
Maven Archetype:generate
# WebApp
mvn archetype:generate \
-DgroupId=meugrupo \
-DartifactId=meuprojeto \
-DarchetypeArtifactId=maven-archetype-webapp \
-DinteractiveMode=false
# Console App - Java 7
mvn archetype:generate \
-DgroupId=com.mycompany.app \
-DartifactId=my-app \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DinteractiveMode=false
# Console App - Java 8
Just add on pom.xml
<properties>
<!-- maven-compiler-plugin configuration -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment