[ 
https://jira.codehaus.org/browse/MPMD-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg closed MPMD-131.
--------------------------------

    Resolution: Duplicate
    
> Configuration does not work when it is specified in pluginManagement block
> --------------------------------------------------------------------------
>
>                 Key: MPMD-131
>                 URL: https://jira.codehaus.org/browse/MPMD-131
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 2.5
>         Environment: Apache Maven 3.0.2 (r1056850; 2011-01-09 03:58:10+0300)
> Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_22\jre
> Default locale: ru_RU, platform encoding: Cp1251
> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
>            Reporter: Sergey Zakusov
>
> When I configure maven-pmd-plugin in pluginManagement block - it does not 
> work:
> {code:xml}
>     <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>
> {code}
> But when I configure it in reporting block - it works fine:
> {code:xml}
>     <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to