码迷,mamicode.com
首页 > 其他好文 > 详细

maven添加额外archetype

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

标签:http   io   strong   ar   html   log   sp   on   ad   

用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   io   strong   ar   html   log   sp   on   ad   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!