maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Dangel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MPMD-259) FileNotFoundException with analysisCache=true, includeTests=true and no test classes
Date Sat, 28 Apr 2018 17:32:00 GMT

    [ https://issues.apache.org/jira/browse/MPMD-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457712#comment-16457712
] 

Andreas Dangel commented on MPMD-259:
-------------------------------------

I can confirm, that the issue is fixed with PMD 6.3.0-SNAPSHOT.

The upstream issue is [https://github.com/pmd/pmd/issues/988]

 

> FileNotFoundException with analysisCache=true, includeTests=true and no test classes
> ------------------------------------------------------------------------------------
>
>                 Key: MPMD-259
>                 URL: https://issues.apache.org/jira/browse/MPMD-259
>             Project: Maven PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 3.9.0
>            Reporter: Goldstein Lyor
>            Priority: Major
>
> If {{includeTests}} option is enabled but there are not test classes to check then PMD
plugin fails with
> {quote}
> Failure executing PMD: [ERROR] Incremental analysis can't check auxclasspath contents
> java.io.FileNotFoundException: /home/lyor/workspace/C-B4-Server/analytics/c-analytics-engine-dal-api/target/test-classes
(No such file or directory)
> {quote}
> In previous version this was quietly ignored - I believe same should be here.
> {code:xml|title=plugin configuration - using PMD 6.2.0 module}
>         <plugin>
>                 <!-- to disable - mvn [commands...] -Dpmd.skip -->
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-pmd-plugin</artifactId>
>                 <configuration>
>                     <rulesets>
>                         <ruleset>${workspace.root.dir}${file.separator}pmd-ruleset-cb4.xml</ruleset>
>                     </rulesets>
>                     <includeTests>true</includeTests>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <id>pmd-checker</id>
>                         <!-- Note: phase must be AFTER detection of workspace root
dir -->
>                         <phase>process-test-classes</phase>
>                         <goals>
>                             <goal>check</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message