Author: Alex.Kolonitsky
Date: 2010-02-25 13:08:11 -0500 (Thu, 25 Feb 2010)
New Revision: 16497
Modified:
root/framework/trunk/pom.xml
Log:
fix checkstyle for sonar
Modified: root/framework/trunk/pom.xml
===================================================================
--- root/framework/trunk/pom.xml 2010-02-25 16:07:00 UTC (rev 16496)
+++ root/framework/trunk/pom.xml 2010-02-25 18:08:11 UTC (rev 16497)
@@ -94,39 +94,6 @@
</dependency>
</dependencies>
- <!--<build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.3</version>
-
- <dependencies>
- <dependency>
- <groupId>org.richfaces</groupId>
- <artifactId>checkstyle</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <executions>
- <execution>
- <id>richfaces-checkstyle-report</id>
- <configuration>
-
<configLocation>richfaces-checkstyle/richfaces-checkstyle.xml</configLocation>
-
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
- </configuration>
-
- <phase>process-sources</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>-->
-
<reporting>
<plugins>
<plugin>
@@ -181,6 +148,51 @@
</clover.license.path>
</properties>
</profile>
+ <profile>
+ <id>checkstyle</id>
+ <!--
+ It is a clever way to skip checkstyle for a sonar.
+ If you want skip checkstyle add "fast" parametr (means add
"-Dfast" in command line)
+ -->
+ <activation>
+ <property>
+ <name>!fast</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.3</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>checkstyle</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+ <executions>
+ <execution>
+ <id>richfaces-checkstyle-report</id>
+ <configuration>
+ <configLocation>richfaces-checkstyle/richfaces-checkstyle.xml</configLocation>
+ <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
+ </configuration>
+
+ <phase>process-sources</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
</project>
Show replies by date