You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Dangel (JIRA)" <ji...@apache.org> on 2018/04/27 17:06:00 UTC

[jira] [Commented] (MPMD-255) Handle missing analysisCacheLocation file

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

Andreas Dangel commented on MPMD-255:
-------------------------------------

This will require PMD 6.3.0.

> Handle missing analysisCacheLocation file
> -----------------------------------------
>
>                 Key: MPMD-255
>                 URL: https://issues.apache.org/jira/browse/MPMD-255
>             Project: Maven PMD Plugin
>          Issue Type: Improvement
>          Components: PMD
>            Reporter: Matt Nelson
>            Priority: Major
>
> When the {{analysisCacheLocation}} file is missing the error is not clear it is the reason for the failure. Can a more descriptive message be added? Or log a warning and proceed to build without the cache.
> {noformat}
> Caused by: java.io.FileNotFoundException: my-project\target\classes (The system cannot find the file specified)
>     at java.io.FileInputStream.open0 (Native Method)
>     at java.io.FileInputStream.open (FileInputStream.java:195)
>     at java.io.FileInputStream.<init> (FileInputStream.java:138)
>     at java.io.FileInputStream.<init> (FileInputStream.java:93)
>     at sun.net.www.protocol.file.FileURLConnection.connect (FileURLConnection.java:90)
>     at sun.net.www.protocol.file.FileURLConnection.getInputStream (FileURLConnection.java:188)
>     at java.net.URL.openStream (URL.java:1045)
>     at net.sourceforge.pmd.cache.AbstractAnalysisCache.computeClassPathHash (AbstractAnalysisCache.java:182)
>     at net.sourceforge.pmd.cache.AbstractAnalysisCache.checkValidity (AbstractAnalysisCache.java:113)
>     at net.sourceforge.pmd.processor.AbstractPMDProcessor.processFiles (AbstractPMDProcessor.java:105)
>     at net.sourceforge.pmd.PMD.processFiles (PMD.java:311)
>     at org.apache.maven.plugins.pmd.PmdReport.processFilesWithPMD (PmdReport.java:503)
>     at org.apache.maven.plugins.pmd.PmdReport.executePmd (PmdReport.java:432)
>     at org.apache.maven.plugins.pmd.PmdReport.executePmdWithClassloader (PmdReport.java:331)
>     at org.apache.maven.plugins.pmd.PmdReport.canGenerateReport (PmdReport.java:305)
> {noformat}



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