【问题标题】:Why is Eclipse Maven Archetype plugin not showing my locally installed Maven archetype?为什么 Eclipse Maven Archetype 插件不显示我本地安装的 Maven 原型?
【发布时间】:2019-05-24 18:34:55
【问题描述】:

我在本地安装了 Maven Archetype java8-junit5-archetype,但是当我尝试在 Eclipse 中创建新的 Maven 项目时,Maven Archetype 插件没有列出它。

我手动将条目添加到本地目录文件~/.m2/archetype-catalog.xml,如下所示:

<archetype>
      <groupId>com.tbp</groupId>
      <artifactId>java8-junit5-archetype</artifactId>
      <version>1.0-SNAPSHOT</version>
      <repository></repository>
</archetype>

但在 Eclipse 中,我没有看到 java8-junit5-archetype 列出。

【问题讨论】:

    标签: eclipse-plugin maven-plugin maven-archetype


    【解决方案1】:

    根本原因 原来java8-junit5-archetype 没有列出的原因是因为它的版本是1.0-SNAPSHOT。这使它成为snapshot archetype

    解决方案 选中Include snapshot archetypes 复选框。现在列出了原型。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-24
      • 2011-10-30
      • 2017-10-31
      • 2010-10-11
      • 2014-09-24
      • 2011-12-09
      • 2017-02-25
      相关资源
      最近更新 更多