Java 运行mvn时出错:生成以生成新项目

Java 运行mvn时出错:生成以生成新项目,java,maven,maven-archetype,Java,Maven,Maven Archetype,给定一个原型cmd- mvn archetype:generate -DarchetypeGroupId=io.confluent.maven.archetypes -DarchetypeArtifactId=kafka-connect-quickstart \ -DarchetypeVersion=0.10.0.0 当我在一个新的空目录中运行它时,它应该为我创建一个源代码文件夹结构 相反,我得到了以下结果- [INFO] Scanning for projects... [INFO]

给定一个原型cmd-

mvn archetype:generate -DarchetypeGroupId=io.confluent.maven.archetypes -DarchetypeArtifactId=kafka-connect-quickstart \
    -DarchetypeVersion=0.10.0.0
当我在一个新的空目录中运行它时,它应该为我创建一个源代码文件夹结构

相反,我得到了以下结果-

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.113 s
[INFO] Finished at: 2019-04-05T14:37:19+13:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\Dev\sandpit\connect-quickstart). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
在我看来,它正在寻找一个pom文件,但我没有,因为这是一个新项目

有什么线索吗?有什么帮助吗

环境:Windows。java-v==OpenJDK版本“11.0.2”

命令

mvn archetype:generate -DarchetypeGroupId=io.confluent.maven.archetypes -DarchetypeArtifactId=kafka-connect-quickstart -DarchetypeVersion=0.10.0.0
在我的电脑上运行正常。但是,如果我包含反斜杠(这在您的问题中出现),我会得到一个与您显示的错误类似的错误。

命令

mvn archetype:generate -DarchetypeGroupId=io.confluent.maven.archetypes -DarchetypeArtifactId=kafka-connect-quickstart -DarchetypeVersion=0.10.0.0
 mvn archetype:generate -DarchetypeGroupId=io.confluent.maven -DarchetypeArtifactId=kafka-connect-quickstart -DarchetypeVersion=0.10.0.0
在我的电脑上运行正常。但是,如果我包括反斜杠,(这在你的问题中存在),我会得到一个错误,就像你显示的那样

 mvn archetype:generate -DarchetypeGroupId=io.confluent.maven -DarchetypeArtifactId=kafka-connect-quickstart -DarchetypeVersion=0.10.0.0
您需要从io.confluent.maven.archetypes中删除原型,因为没有任何类似的groupId。我在电脑上工作

您可以在此引用

您需要从io.confluent.maven.archetypes中删除原型,因为没有任何类似的groupId。我在电脑上工作

您可以在此引用