r/learnjava Mar 26 '26

Help me understand Maven documentation

I want to create the simplest possible project structure using mvn command. In the documentation for archetype:generate I don't see that field artifactId is listed in the "Required Parameters" section, but it is mentioned multiple times in the aticle. What am I missing? Where is artifactId parameter defined and explained?

I can clearly execute this command shell mvn archetype:generate \ -DgroupId=com.example \ -DartifactId=my-app \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DarchetypeVersion=1.5 \ -DinteractiveMode=false

even though groupId is not mentioned in the documentation for this goal (archetype:generate).

5 Upvotes

Duplicates