logicigam 2009-03-24 14:35
浏览 380
已采纳

怎么清除Maven archetypes 的失效archetype列表啊~

最近在学maven archetypes,自己install了一大堆乱七八糟的archetype,删除了repository中的jar以后运行call mvn archetype:generate -DarchetypeCatalog=local发现那些早该消失的archetype还在?~!要怎么把它清除掉啊,我找了archetype里好像没有clean,别告诉我把maven全删了,我的repository忒大了,再下一回得N久~
[b]问题补充:[/b]
hantsy:我找过了,并没有发现这个文件啊???难道是maven 的版本问题??我的是2.0的啊

  • 写回答

2条回答 默认 最新

  • hantsy 2009-03-26 22:07
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题