尝试使用JSF创建项目时出现“执行目标失败”错误

问题描述:

我未能执行目标org.apache.maven-dependency-plugin:2.8:tree尝试使用JSF创建项目时出现“执行目标失败”错误

我在我的CMD命令使用:

mvn archetype:create-DgroupId=com.tutorialspoint.test -DartifactId=helloworld -DarchetypeArtifactId=maven-archetype-webapp 

我跟很多的解决方案,但没有发现这方面的任何解决方案。

enter image description here

+0

我强烈怀疑日志中有更多细节 - 或者您可以增加详细程度以确保日志中包含*更多详细信息... –

+0

我在我的cmd中添加了输出。请看看 –

+0

您是否考虑过使用-e开关重新运行Maven?或者-X开关? – Teepeemm

解决的问题使用下面的命令用引号:

mvn archetype:generate "-DarchetypeGroupId=org.apache.maven.archetypes" "-DgroupId=com.tutorialspoint.test" "-DartifactId=helloworld" 
+0

为什么它在没有qoutes的我的michine上工作? – Mufanu

+0

我认为这两个命令都可以工作(带或不带引号)。我发布了这个答案,因为这对OP有效。 – LittlePanda

的Maven找不到目标CREATE-DgroupId = com.tutorialspoint.test

尝试后把空间打造

mvn archetype:create -DgroupId=com.tutorialspoint.test -DartifactId=helloworld -DarchetypeArtifactId=maven-archetype-webapp 
+0

我已经给出。它不起作用 –

+1

它适用于我的机器。用空格显示输出 – Mufanu

+0

与屏幕截图中显示的 –