I\'m following Maven in 5 Minutes manual with the following:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-a
It just took me 75 minutes to create a Maven quickstart project on Windows 10 using PowerShell in batch mode. Apparently I made three different mistakes.
Do the following:
-B
for batch mode or -DinteractiveMode=false
instead-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=1.1
-DgroupId=com.example
-DartifactId=app
-Dversion=1.0-SNAPSHOT
-Dpackage=com.example.project
"-DgroupId=com.example"
archetype:generate
commandFull example:
mvn archetype:generate -B "-DarchetypeGroupId=org.apache.maven.archetypes" "-DarchetypeArtifactId=maven-archetype-quickstart" "-DarchetypeVersion=1.1" "-DgroupId=com.example" "-DartifactId=app" "-Dversion=1.0-SNAPSHOT" "-Dpackage=com.example.project"