What is the purpose of the artifactId archetype?

When creating a new project, you need to install archetypeArtifactId. Does anyone know the meaning of this element?

+3
source share
2 answers

Did you mean creating a new POM or a new project? For a new project, when you provide archetypeArtifactId, you tell maven which archetype is used to create the original project structure. Maven looks at him from archetypeCatalog .

For example, if you want to create a simple web application project, you specify - DarchetypeArtifactId = maven-archetype-webapp .

Hope this answers your question.

UPDATE

list .

+10

, .

0

Source: https://habr.com/ru/post/1795136/


All Articles