mvn archetyoe:generate -DarchetypeCatalog=internal

  1. 可以使用 $mvn archetype:generate -DarchetypeCatalog=internal  
  2. archetypeCatalog表示插件使用的archetype元数据,默认值为remote,local,即中央仓库archetype元数据(http://repo1.maven.org/maven2/archetype-catalog.xml)加上插件内置元数据的和  
  3. 由于中央仓库的archetype太多,导致这个列表太长  
  4. 因此自己指定仅用内置元数据(20个左右,好像),就可以解决你的烦恼了

 

 

 

 

 

So far, I've gathered this list of repositories that do publish catalogs, but would love to see if anyone knows of more:

mvn archetype:generate
-DarchetypeCatalog=local
-DarchetypeCatalog=remote
-DarchetypeCatalog=http://repo.fusesource.com/maven2
-DarchetypeCatalog=http://cocoon.apache.org
-DarchetypeCatalog=http://download.java.net/maven/2
-DarchetypeCatalog=http://myfaces.apache.org
-DarchetypeCatalog=http://tapestry.formos.com/maven-repository
-DarchetypeCatalog=http://scala-tools.org
-DarchetypeCatalog=http://www.terracotta.org/download/reflector/maven2/

Links to same: 1) FuseSource 2) Cocoon 3) Java.net 4) MyFaces 5) Tapestry 6) Scala Catalog 7) Terracotta Catalog

posted @ 2015-04-29 16:33  微信公众号--共鸣圈  阅读(843)  评论(0编辑  收藏  举报