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条)

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?