2017-08-04 38 views
0

MavenをGatlingに統合しようとしています。以下のエラーメッセージが表示されます。これは初めてのことです。本当に助けが必要です。あなたはpom.xmlにプラグインをAADする必要が[目標org.apache.maven.pluginsを実行できませんでした:maven-archetype-plugin:3.0.1:プロジェクトのstandalone-pomに生成(default-cli):

[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) 

答えて

0

、あなたは以下のプラグインを見つけることができます:

<!-- To define the plugin version in your parent POM --> 
<pluginManagement> 
    <plugins> 
    <plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-archetype-plugin</artifactId> 
     <version>3.0.1</version> 
    </plugin> 
    ... 
    </plugins> 
</pluginManagement> 
<!-- To use the plugin goals in your POM or parent POM --> 
<plugins> 
    <plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-archetype-plugin</artifactId> 
    <version>3.0.1</version> 
    </plugin> 
    ... 
</plugins> 

あなたはすでにあなたのpom.xmlにこのプラグインを追加した場合より多くのあなたはhttps://maven.apache.org/archetype/maven-archetype-plugin/plugin-info.html

から参照することができますのために.m2リポジトリフォルダを削除して、あなたのMavenプロジェクトを更新し、プロジェクトを再構築して実行することができます。

関連する問題