給定一個原型 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文件,我不會有,因為這是一個新項目。有什么線索嗎?有什么幫助嗎?環境:窗戶。java -v == 開放JDK版本“11.0.2”
2 回答

弒天下
TA貢獻1818條經驗 獲得超8個贊
命令
mvn archetype:generate -DarchetypeGroupId=io.confluent.maven.archetypes -DarchetypeArtifactId=kafka-connect-quickstart -DarchetypeVersion=0.10.0.0
在我的計算機上正常運行。但是,如果我包含反斜杠(在您的問題中存在),我會收到一個類似于您顯示的錯誤。

有只小跳蛙
TA貢獻1824條經驗 獲得超8個贊
mvn archetype:generate -DarchetypeGroupId=io.confluent.maven -DarchetypeArtifactId=kafka-connect-quickstart -DarchetypeVersion=0.10.0.0
你需要從“融合”中刪除原型,因為沒有任何像它這樣的組Id。在我的電腦上工作
你可以在這里
參考 https://mvnrepository.com/artifact/io.confluent.maven/kafka-connect-quickstart/0.10.0.0
添加回答
舉報
0/150
提交
取消