출처 : 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
'maven' 카테고리의 다른 글
로컬 저장소(local repository) 없이 jar 파일 추가하기 (0) | 2016.05.03 |
---|---|
jobss 7.1.Final 배포 (0) | 2015.02.06 |
[cobertura] - 코드 커버리지 플러그인 (0) | 2015.02.03 |