Maven原型:生成

时间:2017-09-14 00:36:42

标签: maven archetypes

我正在尝试按照第三方的指示生成项目。但是,由于未知原因,它无法正常工作。鉴于我的知识有限,我将很感激有人可以指出我正确的方向来解决这个问题。

我做了

mvn archetype:crawl

然后我尝试以交互模式创建我的项目,如下所示:

mvn archetype:generate -DarchetypeCatalog=local

我获得了唯一可用的选择。这是完整的对话框:

C:\Projets\OO_Actions\LoadFile>mvn archetype:generate -DarchetypeCatalog=local
[INFO] Scanning for projects...
[INFO]
[INFO]    ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: local -> com.hp.oo.sdk:oo-plugin-archetype (sample-project)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : com.hp.oo.sdk:oo-plugin-archetype
Choose archetype:
1: local -> com.hp.oo.sdk:oo-plugin-archetype (sample-project)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.835 s
[INFO] Finished at: 2017-09-13T17:00:09-04:00
[INFO] Final Memory: 15M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.hp.oo.sdk:oo-plugin-archetype:10.70.00) -> [Help 1]
[ERROR]

我想知道为什么我收到一条消息说原型不存在,而实际上它是唯一有效的选择。我错过了什么?

0 个答案:

没有答案