2017-08-21 4 views
0

私を助けてください私の目標、私はジェンキンスからPMDのレポートを実行しようとしたが、私は、実行のためにビルドエラーPMDジェンキンスが欠落しています:ORG/apacheの/ Mavenの/レポーティング/ AbstractMavenReport

があります

mvnをクリーンインストールするとpmd:pmdがプロジェクトフォルダからビルドエラーになるこのエラーが発生するのは誰ですか?

マイプロジェクトのpom.xml

<dependencies> 
    <dependency> 
     <groupId>junit</groupId> 
     <artifactId>junit</artifactId> 
     <version>3.8.2</version> 
     <scope>test</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.google.guava</groupId> 
     <artifactId>guava</artifactId> 
     <version>20.0</version> 
    </dependency> 
    <dependency> 
     <groupId>com.puppycrawl.tools</groupId> 
     <artifactId>checkstyle</artifactId> 
     <version>8.1</version> 
    </dependency> 
</dependencies> 
<plugins> 
    <plugin> 
     <artifactId>maven-compiler-plugin</artifactId> 
     <version>3.0</version> 
     <configuration> 
      <encoding>UTF-8</encoding> 
      <compilerVersion>1.7</compilerVersion> 
      <source>1.7</source> 
      <target>1.7</target> 
      <verbose>false</verbose> 
     </configuration> 
    </plugin> 
    <plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-surefire-plugin</artifactId> 
     <version>2.7.2</version> 
     <configuration> 
      <skipTests>${skipTests}</skipTests> 
     </configuration> 
    </plugin> 
    <plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-resources-plugin</artifactId> 
     <version>2.6</version> 
     <executions> 
      <execution> 
       <phase>test</phase> 
       <goals> 
        <goal>resources</goal> 
        <goal>testResources</goal> 
       </goals> 
      </execution> 
     </executions> 
    </plugin> 
    <plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-project-info-reports-plugin</artifactId> 
     <version>2.7</version> 
    </plugin> 
</plugins> 

私はジェンキンスのプラグイン、

Mavenの統合plugin- 2.17 PMD Plugin- 3.49 静的解析ユーティリティ - 1.92

ERROR、これを追加しました:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.8:pmd (default-cli) on project SINGLE_HUB_POM: Execution default-cli of goal org.apache.maven.plugins:maven-pmd-plugin:3.8:pmd failed: Unable to load the mojo 'pmd' in the plugin 'org.apache.maven.plugins:maven-pmd-plugin:3.8'. A required class is missing: org/apache/maven/reporting/AbstractMavenReport 
[ERROR] ----------------------------------------------------- 
[ERROR] realm = plugin>org.apache.maven.plugins:maven-pmd-plugin:3.8 
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy 
[ERROR] urls[0] = file:/home/.m2/org/apache/maven/plugins/maven-pmd-plugin/3.8/maven-pmd-plugin-3.8.jar 
[ERROR] urls[1] = file:/home/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar 
[ERROR] Number of foreign imports: 1 
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] 
[ERROR] 
[ERROR] -----------------------------------------------------: org.apache.maven.reporting.AbstractMavenReport 
[ERROR] -> [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/PluginContainerException 

答えて

0

mvn clea nパッケージアセンブリをコンパイルする:アセンブリをインストールするこれを試す

関連する問題