BUG-2643: enable checkstyle/findbugs in archetype 70/62270/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Aug 2017 12:25:41 +0000 (14:25 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 25 Aug 2017 01:57:15 +0000 (01:57 +0000)
New projects should have these set from the get go.

Change-Id: Ic85cdd003ecb1fe49326d3d6a1b1099d09522ebb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/api/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/cli/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/pom.xml

index c18f665f7007f4d98c8b74e5ab3dd2c1beba014d..eb64ff6e89bb3e0564d456d35eedf68fd380c7c5 100644 (file)
@@ -25,4 +25,23 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
        build failure. Please do not modify this unless you have a good reason. -->
   <name>ODL :: ${groupId} :: ${project.artifactId}</name>
   <packaging>bundle</packaging>
        build failure. Please do not modify this unless you have a good reason. -->
   <name>ODL :: ${groupId} :: ${project.artifactId}</name>
   <packaging>bundle</packaging>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <configuration>
+          <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <configuration>
+          <failOnError>true</failOnError>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
 </project>
index b5aeef444703cef3a9867fb0d543466b019d9b59..79ae689beca91a539b19bba7e09435b8dcb02e35 100644 (file)
@@ -50,4 +50,23 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
       <version>${karaf.version}</version>
     </dependency>
   </dependencies>
       <version>${karaf.version}</version>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <configuration>
+          <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <configuration>
+          <failOnError>true</failOnError>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
 </project>
index ea2c01215aff91f5ed8c930a5ccbb2134ac4157a..d046a95f072319b75a9718ae1245ff8fde67590f 100644 (file)
@@ -50,4 +50,23 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
       <scope>test</scope>
     </dependency>
   </dependencies>
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <configuration>
+          <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <configuration>
+          <failOnError>true</failOnError>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
 </project>