gpt4 book ai didi

java - mvn原型(prototype):generate issue

转载 作者:行者123 更新时间:2023-12-02 04:35:50 25 4
gpt4 key购买 nike

当我尝试使用原型(prototype)插件使用 Maven 3.3.3 创建项目时遇到此错误:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.372 s
[INFO] Finished at: 2015-06-10T10:51:23-07:00
[INFO] Final Memory: 10M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'generate' in plugin org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7 among available goals create-from-project
, create -> [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/MojoNotFoundException

感谢任何帮助。

谢谢

最佳答案

你能编写命令来提供该输出吗?

它应该看起来像:

mvn archetype:生成-B -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.1 -DgroupId=com.company -DartifactId=项目 -Dversion=1.0-SNAPSHOT -Dpackage=com.company.project

尝试使用上面的命令(当然更改你的artifactId、groupId和包)。

关于java - mvn原型(prototype):generate issue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30767842/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com