------ Usage ------ Maria Odea Ching ------ 21 July 2006 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Usage The following examples describe the basic usage of the Checkstyle Plugin. * Generate Checkstyle Report As Part of the Project Reports To generate the Checkstyle report as part of the Project Reports, add the Checkstyle Plugin in the <<<\>>> section of your <<>>. +-----+ ... org.apache.maven.plugins maven-checkstyle-plugin ${project.version} ... +-----+ Then, execute the site phase to generate the report. +-----+ mvn site +-----+ * Generate Checkstyle Report As Standalone You can also generate the Checkstyle report by explicitly executing the <<>> goal from the command line. It is not required to specify the Checkstyle Plugin in your <<>> unless you want to use a specific configuration. +-----+ mvn checkstyle:checkstyle +-----+ To specifically configure the Checkstyle Plugin, you need to the add it in the <<<\>>> section of your <<>> as shown in the sample below. +-----+ ... org.apache.maven.plugins maven-checkstyle-plugin ${project.version} false ... ... +-----+