Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.5
-
None
-
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
- duplicates
-
MSITE-516 reportPlugins should/could inherit more information from pluginManagement
- Closed