gpt4 book ai didi

maven - [无法执行目标 org.apache.maven.plugins :maven-archetype-plugin:3. 0.1:generate (default-cli) on project standalone-pom:]

转载 作者:行者123 更新时间:2023-12-02 15:08:38 26 4
gpt4 key购买 nike

我正在尝试将 Maven 与 Gatling 集成,但收到以下错误消息。这是我第一次这样做,我真的需要帮助。

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[WARNING] No archetype found in remote catalog. Defaulting to internal catalog
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repsoitory with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
Downloading: https://repo.maven.apache.org/maven2/io/gatling/highcharts/gatling-highcharts-maven-archetype/2.2.1/gatling-highcharts-maven-archetype-2.2.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.203 s
[INFO] Finished at: 2017-08-04T11:18:56-04:00
[INFO] Final Memory: 14M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (io.gatling.highcharts:gatling-highcharts-maven-archetype:2.2.1) -> [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/MojoFailureException
[ERROR] Maven execution terminated abnormally (exit code 1)

最佳答案

我遇到了同样的问题。当我将 mvn archetype:generate 替换为 mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate 时,它得到解决,如 Robert 在 this github issue comment 中所述。

关于maven - [无法执行目标 org.apache.maven.plugins :maven-archetype-plugin:3. 0.1:generate (default-cli) on project standalone-pom:],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45510879/

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