2015. 2. 2. 14:14

출처 : http://lesstif.com/pages/viewpage.action?pageId=22643564 


site plugin을 사용하여 PMD 리포트를 생성


pom.xml

..........

<reporting>

<plugins>

<plugin>

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

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

<version>3.3</version>

<configuration>

<format>xml</format>

<minimumTokens>100</minimumTokens>

<targetJdk>1.6</targetJdk>

<linkXref>true</linkXref>

<sourceEncoding>UTF-8</sourceEncoding>

<rulesets>

<ruleset>file:///${project.basedir}/bms-pmd-ruleset.xml</ruleset>

</rulesets>

<excludes>

<exclude>platform/web/common/**</exclude>

</excludes>

<excludeRoots>

<excludeRoot>target/generated-sources/*</excludeRoot>

</excludeRoots>

</configuration>

<reportSets>

<reportSet>

<reports>

<report>pmd</report>

</reports>

</reportSet>

</reportSets>

</plugin>

<plugin>

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

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

<version>2.5</version>

</plugin>

</plugins>

</reporting>

..........


goals

clean site:site


Posted by 짱가쟁이