首页 > 其他 > 详细

maven添加额外archetype

时间:2014-08-29 00:02:56      阅读:359      评论:0      收藏:0      [点我收藏+]

用Eclipse + m2e 插件新建maven项目时发现archetype太少了,网上搜索如何添加额外的archetype.

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.

 

可以从上述网址下载archetype-catalog.xml另存为~/.m2/archetype-catalog.xml

再新建maven项目,发现Catalog为Default Local中有了很多的archetype。

 

maven添加额外archetype

原文:http://www.cnblogs.com/wucg/p/3943872.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!