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

Relative file name doesn't work when specifying ruleset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.7.1
    • None
    • PMD
    • None
    • Windows 7

    Description

      When ruleset specified as follows:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.7.1</version>
        <configuration>
           <linkXref>false</linkXref
           <minimumTokens>100</minimumTokens
           <targetJdk>1.5</targetJdk>
           <rulesets>
             <ruleset>../config/basic.xml</ruleset>
           </rulesets>
        </configuration>
      </plugin>
      

      File is not resolved. Also following message appears on console:
      [DEBUG] The resource '../config/basic.xml' was not found with resourceLoader org.codehaus.plexus.resource.loader.FileResourceLoader.

      Attachments

        1. MPMD-158.zip
          1 kB
          dennislundberg
        2. MPMD-158-With-Child-Module.zip
          2 kB
          Taras Pushyk

        Issue Links

          Activity

            People

              adangel Andreas Dangel
              smoker Taras Pushyk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: