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

Add documentation about upgrading PMD version at runtime

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: CPD, PMD
    • Labels:
      None

      Description

      The documentation should be similar to http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/upgrading-checkstyle.html

      Example configuration, to use m-pmd-p 3.8 + PMD "choose your version":

      <project>
        <properties>
          <pmdVersion>...choose your version...</version>
        </properties>
      ...
        <build>
          <pluginManagement>
            <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>3.8</version>
                <dependencies>
                  <dependency>
                    <groupId>net.sourceforge.pmd</groupId>
                    <artifactId>pmd-core</artifactId>
                    <version>${pmdVersion}</version>
                  </dependency>
                  <dependency>
                    <groupId>net.sourceforge.pmd</groupId>
                    <artifactId>pmd-java</artifactId>
                    <version>${pmdVersion}</version>
                  </dependency>
                  <dependency>
                    <groupId>net.sourceforge.pmd</groupId>
                    <artifactId>pmd-javascript</artifactId>
                    <version>${pmdVersion}</version>
                  </dependency>
                  <dependency>
                    <groupId>net.sourceforge.pmd</groupId>
                    <artifactId>pmd-jsp</artifactId>
                    <version>${pmdVersion}</version>
                  </dependency>
                </dependencies>
              </plugin>
            </plugins>
          </pluginManagement>
        </build>
      ...
      </project>
      

      See also https://github.com/pmd/pmd/issues/402

        Attachments

          Activity

            People

            • Assignee:
              adangel Andreas Dangel
              Reporter:
              adangel Andreas Dangel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: