Hello World from OSS Silicon Valley


HowToUse/Maven/3.2/CheckStyle

_ Prerequisite

_ Install&Setup

Step.1

_ HowToUse

Step.1
Create Maven project.
Step.2
Add the following description in POM.xml
<build>
  <pluginManagement>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
         <version>2.9.1</version>
       </plugin>
     </plugins>
   </pluginManagement>
</build>

<reporting>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-checkstyle-plugin</artifactId>
       <version>2.9.1</version>
     </plugin>
   </plugins>
 </reporting>
Step.3
Execute the following command. Then you can see coverage info from checkstyle-result.xml.
$ mvn checkstyle:checkstyle

_ Author

S.Yatsuzuka

Last-modified: 2015-08-17 (Mon) 02:41:34 (3476d)