When I used Eclipse + m2e plugin to create a new maven project, I found that there were too few archetypes. I searched online for how to add additional archetypes.
http://maven.apache.org/archetype/maven-archetype-plugin/specification/archetype-catalog.html
The Archetype Plugin knows by default about its internal catalog. It also knows about the local and remote catalogs.
local represents the ~/.m2/archetype-catalog.xml catalog file.
remote represents the http://repo1.maven.org/maven2/ archetype-catalog.xml catalog file.
The Archetype Plugin can also read catalogs from filesystem/HTTP by providing the path/URL of a catalog file or of a directory containing an archetype-catalog.xml file.
The archetype-catalog can be downloaded from the above URL .xml is saved as ~/.m2/archetype-catalog.xml
and then create a new maven project. It is found that there are many archetypes in Catalog as Default Local.
refer to:
http://www.cnblogs.com/wucg/p/3943872.html?utm_source=tuicool&utm_medium=referral
maven add extra archetype
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327060126&siteId=291194637
Recommended
Ranking