</dependency>
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Temporarily override the odlparent checkstyle configuration.
+ We want to enforce some simple rules and add more as we clean up code -->
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>checkstyle/java_rules.xml</configLocation>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <excludes>org/opendaylight/yang/gen/**,**/config/yang/**</excludes>
+ <failsOnError>true</failsOnError>
+ <consoleOutput>true</consoleOutput>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.lispflowmapping</groupId>
+ <artifactId>common.build.tools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<!--
Maven Site Configuration
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Temporarily override the odlparent checkstyle configuration.
+ We want to enforce some simple rules and add more as we clean up code -->
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>checkstyle/java_rules.xml</configLocation>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <excludes>org/opendaylight/yang/gen/**,**/config/yang/**</excludes>
+ <failsOnError>true</failsOnError>
+ <consoleOutput>true</consoleOutput>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.lispflowmapping</groupId>
+ <artifactId>common.build.tools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<!--
Maven Site Configuration
</dependency>
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Temporarily override the odlparent checkstyle configuration.
+ We want to enforce some simple rules and add more as we clean up code -->
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>checkstyle/java_rules.xml</configLocation>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <excludes>org/opendaylight/yang/gen/**,**/config/yang/**</excludes>
+ <failsOnError>true</failsOnError>
+ <consoleOutput>true</consoleOutput>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.lispflowmapping</groupId>
+ <artifactId>common.build.tools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<!--
Maven Site Configuration
</dependency>
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Temporarily override the odlparent checkstyle configuration.
+ We want to enforce some simple rules and add more as we clean up code -->
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>checkstyle/java_rules.xml</configLocation>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <excludes>org/opendaylight/yang/gen/**,**/config/yang/**</excludes>
+ <failsOnError>true</failsOnError>
+ <consoleOutput>true</consoleOutput>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.lispflowmapping</groupId>
+ <artifactId>common.build.tools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<!--
Maven Site Configuration
</dependency>
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Temporarily override the odlparent checkstyle configuration.
+ We want to enforce some simple rules and add more as we clean up code -->
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>checkstyle/java_rules.xml</configLocation>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <excludes>org/opendaylight/yang/gen/**,**/config/yang/**</excludes>
+ <failsOnError>true</failsOnError>
+ <consoleOutput>true</consoleOutput>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.lispflowmapping</groupId>
+ <artifactId>common.build.tools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<!--
Maven Site Configuration
</dependency>
</dependencies>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <!-- Temporarily override the odlparent checkstyle configuration.
- We want to enforce some simple rules and add more as we clean up code -->
- <artifactId>maven-checkstyle-plugin</artifactId>
- <configuration>
- <configLocation>checkstyle/java_rules.xml</configLocation>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- <excludes>org/opendaylight/yang/gen/**,**/config/yang/**</excludes>
- <failsOnError>true</failsOnError>
- <consoleOutput>true</consoleOutput>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.lispflowmapping</groupId>
- <artifactId>common.build.tools</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <goals>
- <goal>check</goal>
- </goals>
- <phase>process-sources</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
<!--
Maven Site Configuration
</dependencies>
<build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Enforce odlparent checkstyle -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
import org.opendaylight.lispflowmapping.interfaces.mappingservice.IMappingServiceShell;
/**
- * This class implements the "lisp:addkey" Karaf shell command
+ * This class implements the "lisp:addkey" Karaf shell command.
*
* @author Lorand Jakab
*
*/
-@Command(scope = "mappingservice", name = "addkey", description="Add an authentication key")
+@Command(scope = "mappingservice", name = "addkey", description = "Add an authentication key")
public class LispAddKey extends OsgiCommandSupport {
private IMappingServiceShell mappingServiceShell;
import org.opendaylight.lispflowmapping.interfaces.mappingservice.IMappingServiceShell;
/**
- * This class implements the "lisp:mappings" Karaf shell command
+ * This class implements the "lisp:mappings" Karaf shell command.
*
* @author Lorand Jakab
*
*/
-@Command(scope = "mappingservice", name = "mappings", description="Print LISP mapping database")
+@Command(scope = "mappingservice", name = "mappings", description = "Print LISP mapping database")
public class LispMappings extends OsgiCommandSupport {
private IMappingServiceShell mappingServiceShell;
@Override
+ @SuppressWarnings("checkstyle:RegexpMultiline")
protected Object doExecute() throws Exception {
System.out.print(mappingServiceShell.printMappings());
return null;
</dependency>
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Temporarily override the odlparent checkstyle configuration.
+ We want to enforce some simple rules and add more as we clean up code -->
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>checkstyle/java_rules.xml</configLocation>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <excludes>org/opendaylight/yang/gen/**,**/config/yang/**</excludes>
+ <failsOnError>true</failsOnError>
+ <consoleOutput>true</consoleOutput>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.lispflowmapping</groupId>
+ <artifactId>common.build.tools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<!--
Maven Site Configuration