Create a project by the mvn command
Maven official document: Maven the Getting Started Guide
Creating a Maven project via mvn command.
mvn -B archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.mycompany.app \
-DartifactId=my-app
-
-B: This parameter indicates Maven to build the project using batch mode, to avoid some of the pending state requires human interaction and participation caused.
-
archetype: generate: Create a command Maven project.
-
DarchetypeGroupId: Specifies the Apache maven organization name.
-
DgroupId: Specifies the project group name or company.
-
DartifactId: Specifies the project name.
E.g:
mvn -B archetype:generate -DgroupId=com.myapp.pro -DartifactId=myapp -DarchetypeArtifactId==maven-archetype-quickstart -DinteractiveMode=false
Will the command to copy the Windows command prompt (Linux terminal) to the next.
Continue through the mvn idea:idea
command generates IntelliJ IDEA project.
> cd myapp\
..\myapp> mvn idea:idea
Then, IntelliJ-IDEA open myapp project.