maven 我在执行命令时得到了BUILD FAILURE结果

ubby3x7f  于 2023-03-22  发布在  Maven
关注(0)|答案(1)|浏览(266)

我在cmd.exe中尝试通过执行以下命令创建maven项目时收到错误消息。

mvn archetype:genrate -DgroupId=demoProject -DartifactId=Mavenjava -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false'

    

    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  0.500 s
    [INFO] Finished at: 2023-03-21T11:49:24+05:30
    [INFO] ------------------------------------------------------------------------
    [ERROR] Could not find goal 'genrate' in plugin org.apache.maven.plugins:maven-archetype-plugin:3.2.1 among available goals crawl, create-from-project, generate, help, integration-test, jar, update-local-catalog -> [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
zwghvu4y

zwghvu4y1#

这只是一个打字错误,Maven清楚地显示错误消息。Could not find goal 'genrate'
mvn archetype:genrate --〉mvn archetype:generate

相关问题