最近在学maven archetypes,自己install了一大堆乱七八糟的archetype,删除了repository中的jar以后运行call mvn archetype:generate -DarchetypeCatalog=local发现那些早该消失的archetype还在?~!要怎么把它清除掉啊,我找了archetype里好像没有clean,别告诉我把maven全删了,我的repository忒大了,再下一回得N久~
[b]问题补充:[/b]
hantsy:我找过了,并没有发现这个文件啊???难道是maven 的版本问题??我的是2.0的啊
Using the following command to refresh catalog
mvn archetype:crawl
or using archetype:update-local-catalog to update your catalog based on your local repository.
Please refer to the Maven Archetype document.
http://maven.apache.org/plugins/maven-archetype-plugin/index.html
PS:[hantsy@localhost eclipse]$ mvn -v
Apache Maven 2.1.0 (r755702; 2009-03-19 03:10:27+0800)
Java version: 1.6.0_13
Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.13/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.27.19-170.2.35.fc10.i686" arch: "i386" Family: "unix"
By the way ,the maven archtype document points out the default catalog file location is under ~/.m2/.
But I found it is ~/.m2/repository in my system.
remove file ~/.m2/repository/archetype-catalog.xml please.
~/.m2/repository is your local repository.