You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andre Dantas Rocha <an...@uol.com.br> on 2008/10/01 15:02:03 UTC

Using locales with maven-pmd-plugin

Hi all,

 

I'm trying unsuccessfully using i18n with PMD plugin. Actually I don't know
where to put my pt_BR properties file.

 

My project is an EAR project and  the configuration for reports is shown
above. All site is in pt_BR, but PMD and Checkstyle.

 

Could anybody help me?

 

Thanks,

 

Andre

 

                <reporting>

                               <plugins>

                                               <plugin>

 
<groupId>org.apache.maven.plugins</groupId>

 
<artifactId>maven-jxr-plugin</artifactId>

 
<version>2.1</version>

 
<configuration>

 
<aggregate>true</aggregate>

 
</configuration>                                            

                                               </plugin>

                                               

                                               <plugin>

 
<groupId>org.apache.maven.plugins</groupId>

 
<artifactId>maven-pmd-plugin</artifactId>

 
<version>2.4</version>

 
<configuration>

 
<locales>pt_BR</locales>

 
<verbose>true</verbose>

 
<failOnRuleViolation>false</failOnRuleViolation>

 
<failOnError>false</failOnError>

 
<targetJdk>${maven.compiler.source}</targetJdk>

 
<aggregate>true</aggregate>

 
<minimumTokens>100</minimumTokens>


 
<rulesets>

 
<ruleset>${configDir}/cef-pmd.xml</ruleset>

 
</rulesets>

 
</configuration>                                            

                                               </plugin>

                                               

                                               <plugin>

 
<groupId>org.apache.maven.plugins</groupId>

 
<artifactId>maven-checkstyle-plugin</artifactId>

 
<version>2.2</version>

 
<configuration>

 
<failsOnError>false</failsOnError>

 
<configLocation>config/sun_checks.xml</configLocation>

 
<aggregate>true</aggregate>

 
</configuration>

                                               </plugin>

 


                                               <plugin>

 
<groupId>org.apache.maven.plugins</groupId>

 
<artifactId>maven-site-plugin</artifactId>

 
<version>2.0-beta-7</version>

 
<configuration>

 
<locales>pt_BR</locales>

 
</configuration>

                                               </plugin>


                               

                                               <plugin>

 
<groupId>org.apache.maven.plugins</groupId>

 
<artifactId>maven-project-info-reports-plugin</artifactId>

 
<version>2.1</version>

                                                               <reportSets>

 
<reportSet>

 
<reports>

 
<report>index</report>

 
<report>dependencies</report>

 
</reports>

 
</reportSet>

                                                               </reportSets>

                                               </plugin>

                               </plugins>

                </reporting>