<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>