为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

慕森卡 2022-09-22 10:18:28
给定一个原型 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

在我的计算机上正常运行。但是,如果我包含反斜杠(在您的问题中存在),我会收到一个类似于您显示的错误。


查看完整回答
反对 回复 2022-09-22
?
有只小跳蛙

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


查看完整回答
反对 回复 2022-09-22
  • 2 回答
  • 0 关注
  • 104 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号