Adjust for checkstyle movement 58/46758/2
authorVratko Polak <vrpolak@cisco.com>
Tue, 11 Oct 2016 13:26:01 +0000 (15:26 +0200)
committerVratko Polak <vrpolak@cisco.com>
Tue, 11 Oct 2016 13:26:37 +0000 (15:26 +0200)
Checkstyle was moved to odlparent.
Only minimal configuration changes are performend atop odlparent defaults.

Change-Id: I9cf7a7d2a8e429a250771e8bbf187208f59a06f9
Signed-off-by: Robert Varga <rovarga@cisco.com>
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
ttp-parent/pom.xml

index 2af748f4c9bc35a7a4a5be3dc686d9209e4bb7af..09839c832679a30e91765d069f62d2f1b7a03190 100644 (file)
@@ -38,6 +38,7 @@
   <build>
     <pluginManagement>
       <plugins>
+        <!-- TODO: Compare to odlparent:odlparent content and remove onneeded overrides. -->
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
             <target>${java.version.target}</target>
           </configuration>
         </plugin>
-
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-checkstyle-plugin</artifactId>
-          <version>${checkstyle.version}</version>
           <configuration>
             <failsOnError>true</failsOnError>
-            <violationSeverity>error</violationSeverity> <!-- change to warning as we get better -->
-            <configLocation>controller/checkstyle.xml</configLocation>
-            <consoleOutput>true</consoleOutput>
-            <includeTestSourceDirectory>true</includeTestSourceDirectory>
-            <sourceDirectory>${project.basedir}</sourceDirectory>
-            <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
-            <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/xtend-gen\/,**\/yang-gen-sal\/</excludes>
+            <violationSeverity>error</violationSeverity>  <!-- change to warning as we get better -->
           </configuration>
-          <dependencies>
-            <dependency>
-              <groupId>org.opendaylight.controller</groupId>
-              <artifactId>checkstyle</artifactId>
-              <version>0.4.0-SNAPSHOT</version>
-            </dependency>
-          </dependencies>
-          <executions>
-            <execution>
-              <!-- <id>check</id> -->
-              <goals>
-                <goal>check</goal>
-              </goals>
-              <!-- <phase>process-sources</phase> -->
-            </execution>
-          </executions>
         </plugin>
-
         <!--  tells eclipse to import these folders into the package explorer as "source" folders
               which allows eclipse to resolve the classes correctly during an eclipse build -->
         <plugin>