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

Configuration does not work when it is specified in pluginManagement block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.5
    • None
    • PMD
    • None

    Description

      When I configure maven-pmd-plugin in pluginManagement block - it does not work:

          <build>
              <pluginManagement>
                  <plugins>
                      <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-pmd-plugin</artifactId>
                          <version>2.5</version>
                          <configuration>
                              <targetJdk>1.6</targetJdk>
                          </configuration>
                      </plugin>
                  </plugins>
              </pluginManagement>
          </build>
      
          <reporting>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-pmd-plugin</artifactId>
                      <version>2.5</version>
                  </plugin>
              </plugins>
          </reporting>
      

      But when I configure it in reporting block - it works fine:

          <build>
              <pluginManagement>
                  <plugins>
                      <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-pmd-plugin</artifactId>
                          <version>2.5</version>
                      </plugin>
                  </plugins>
              </pluginManagement>
          </build>
      
          <reporting>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-pmd-plugin</artifactId>
                      <version>2.5</version>
                      <configuration>
                          <targetJdk>1.6</targetJdk>
                      </configuration>
                  </plugin>
              </plugins>
          </reporting>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zakusov Sergey Zakusov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: