Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-255

Handle missing analysisCacheLocation file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • PMD
    • None

    Description

      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.

      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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              MattNelson Matt Nelson
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: