Author: gnodet
Date: Mon Jun 25 11:17:27 2007
New Revision: 550569

URL: http://svn.apache.org/viewvc?view=rev&rev=550569
Log:
Add a profile to disable checks (checkstyle + pmd)

Modified:
    incubator/servicemix/trunk/parent/pom.xml

Modified: incubator/servicemix/trunk/parent/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/parent/pom.xml?view=diff&rev=550569&r1=550568&r2=550569
==============================================================================
--- incubator/servicemix/trunk/parent/pom.xml (original)
+++ incubator/servicemix/trunk/parent/pom.xml Mon Jun 25 11:17:27 2007
@@ -33,68 +33,87 @@
   <name>ServiceMix :: Parent</name>
   <packaging>pom</packaging>
 
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-checkstyle-plugin</artifactId>
-        <dependencies>
-          <dependency>
-            <groupId>org.apache.servicemix</groupId>
-            <artifactId>build</artifactId>
-            <version>${project.version}</version>
-          </dependency>
-        </dependencies>
-        <executions>
-          <execution>
-            <id>validate</id>
-            <phase>validate</phase>
-            <configuration>
-              <configLocation>smx-checkstyle.xml</configLocation>
-              <consoleOutput>true</consoleOutput>
-              <failsOnError>true</failsOnError>
-              <linkXRef>false</linkXRef>
-              
<suppressionsLocation>smx-checkstyle-suppressions.xml</suppressionsLocation>
-              <sourceDirectory>${basedir}/src</sourceDirectory>
-            </configuration>
-            <goals>
-              <goal>checkstyle</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-pmd-plugin</artifactId>
-        <dependencies>
-          <dependency>
-            <groupId>org.apache.servicemix</groupId>
-            <artifactId>build</artifactId>
-            <version>${project.version}</version>
-          </dependency>
-        </dependencies>
-        <configuration>
-          <rulesets>
-            <ruleset>smx-pmd-ruleset.xml</ruleset>
-          </rulesets>
-          <targetJdk>1.5</targetJdk>
-          <linkXRef>false</linkXRef>
-          <includeTests>true</includeTests>
-          <verbose>true</verbose>
-          <excludeRoots>
-            <excludeRoot>${basedir}/src/main/generated</excludeRoot>
-          </excludeRoots>
-        </configuration>
-        <executions>
-          <execution>
-            <id>validate</id>
-            <phase>validate</phase>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
+  <profiles>
+    <profile>
+        <id>fastinstall</id>
+        <properties>
+            <maven.test.skip>true</maven.test.skip>
+        </properties>
+    </profile>
+    <profile>
+        <id>nochecks</id>
+    </profile>
+
+    <profile>
+        <!-- default profile enables checkstyle and Xlint stuff -->
+        <id>sourcecheck</id>
+        <activation>
+            <activeByDefault>true</activeByDefault>
+        </activation>
+        <build>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-checkstyle-plugin</artifactId>
+              <dependencies>
+                <dependency>
+                  <groupId>org.apache.servicemix</groupId>
+                  <artifactId>build</artifactId>
+                  <version>${project.version}</version>
+                </dependency>
+              </dependencies>
+              <executions>
+                <execution>
+                  <id>validate</id>
+                  <phase>validate</phase>
+                  <configuration>
+                    <configLocation>smx-checkstyle.xml</configLocation>
+                    <consoleOutput>true</consoleOutput>
+                    <failsOnError>true</failsOnError>
+                    <linkXRef>false</linkXRef>
+                    
<suppressionsLocation>smx-checkstyle-suppressions.xml</suppressionsLocation>
+                    <sourceDirectory>${basedir}/src</sourceDirectory>
+                  </configuration>
+                  <goals>
+                    <goal>checkstyle</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-pmd-plugin</artifactId>
+              <dependencies>
+                <dependency>
+                  <groupId>org.apache.servicemix</groupId>
+                  <artifactId>build</artifactId>
+                  <version>${project.version}</version>
+                </dependency>
+              </dependencies>
+              <configuration>
+                <rulesets>
+                  <ruleset>smx-pmd-ruleset.xml</ruleset>
+                </rulesets>
+                <targetJdk>1.5</targetJdk>
+                <linkXRef>false</linkXRef>
+                <includeTests>true</includeTests>
+                <verbose>true</verbose>
+                <excludeRoots>
+                  <excludeRoot>${basedir}/src/main/generated</excludeRoot>
+                </excludeRoots>
+              </configuration>
+              <executions>
+                <execution>
+                  <id>validate</id>
+                  <phase>validate</phase>
+                  <goals>
+                    <goal>check</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
+    </profiles>
 </project>


Reply via email to