Tests for network maps and cost maps
[alto.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 5104c4db4720afd219e77b2a97f8f9eff3c172ca..ad331d185af348829922e84af5a3cd8ea2e6a275 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <prerequisites>
-        <maven>3.0.4</maven>
-    </prerequisites>
-
-    <parent>
-        <groupId>org.opendaylight.odlparent</groupId>
-        <artifactId>odlparent</artifactId>
-        <version>1.5.0-SNAPSHOT</version>
-    </parent>
-
-    <groupId>org.opendaylight.alto</groupId>
-    <artifactId>alto-parent</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-    <name>alto</name> <!-- Used by Sonar to set project name -->
-    <packaging>pom</packaging>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-
-        <checkstyle.skip>true</checkstyle.skip>
-
-        <!-- Java Versions -->
-        <maven.compiler.source>1.7</maven.compiler.source>
-        <maven.compiler.target>1.7</maven.compiler.target>
-
-        <!-- Build Plugin Versions -->
-        <maven.release.version>2.4.2</maven.release.version>
-        <maven.resources.version>2.6</maven.resources.version>
-        <maven.helper.version>1.8</maven.helper.version>
-        <maven.dependency.version>2.6</maven.dependency.version>
-        <maven.exec.version>1.3.2</maven.exec.version>
-
-        <ietf.model.version>2010.09.24.7-SNAPSHOT</ietf.model.version>
-        <ietf.yang.types.version>2013.07.15.7-SNAPSHOT</ietf.yang.types.version>
-        <ietf.topology.version>2013.10.21.2-SNAPSHOT</ietf.topology.version>
-        <yang.ext.version>2013.09.07.7-SNAPSHOT</yang.ext.version>
-        <config.version>0.3.0-SNAPSHOT</config.version>
-        <sal.version>0.7.1-SNAPSHOT</sal.version>
-        <war.version>3.0.1</war.version>
-        <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
-        <controller.model.version>1.2.0-SNAPSHOT</controller.model.version>
-        <build.helper.version>1.8</build.helper.version>
-        <netconf.parent.version>0.3.0-SNAPSHOT</netconf.parent.version>
-        <config.parent.version>0.3.0-SNAPSHOT</config.parent.version>
-        <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
-        <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
-        <jersey.version>1.17</jersey.version>
-        <jersey.servlet.version>1.17</jersey.servlet.version>
-        <jersey.json.version>1.17</jersey.json.version>
-        <jackson.version>2.3.2</jackson.version>
-        <config.version>0.3.0-SNAPSHOT</config.version>
-
-        <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
-        <yangtools.binding.version>0.7.0-SNAPSHOT</yangtools.binding.version>
-
-        <lispflowmapping.version>1.2.0-SNAPSHOT</lispflowmapping.version>
-        <ovsdb.southbound.version>1.1.0-SNAPSHOT</ovsdb.southbound.version>
-
-        <!-- Supporting Libraries -->
-        <slf4j.version>1.7.5</slf4j.version>
-        <feature.openflowplugin.version>0.1.0-SNAPSHOT</feature.openflowplugin.version>
-
-        <branding.version>1.1.0-SNAPSHOT</branding.version>
-        <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
-        <feature.test.version>1.5.0-SNAPSHOT</feature.test.version>
-        <karaf.empty.version>1.5.0-SNAPSHOT</karaf.empty.version>
-        <controller.checkstyle.version>0.1.0-SNAPSHOT</controller.checkstyle.version>
-        <controller.commons.northbound.version>0.5.0-SNAPSHOT</controller.commons.northbound.version>
-        <corsfilter.version>7.0.42</corsfilter.version>
-
-        <!-- Test Libraries -->
-        <powermock.version>1.5.6</powermock.version>
-    </properties>
-
-    <repositories>
-      <repository>
-        <releases>
-          <enabled>true</enabled>
-          <updatePolicy>never</updatePolicy>
-        </releases>
-        <snapshots>
-          <enabled>false</enabled>
-        </snapshots>
-        <id>opendaylight-mirror</id>
-        <name>opendaylight-mirror</name>
-        <url>http://nexus.opendaylight.org/content/groups/public/</url>
-      </repository>
-      <repository>
-        <releases>
-          <enabled>false</enabled>
-        </releases>
-        <snapshots>
-          <enabled>true</enabled>
-        </snapshots>
-        <id>opendaylight-snapshot</id>
-        <name>opendaylight-snapshot</name>
-        <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
-      </repository>
-    </repositories>
-
-    <distributionManagement>
-        <repository>
-            <id>opendaylight-release</id>
-            <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release</url>
-        </repository>
-        <snapshotRepository>
-            <id>opendaylight-snapshot</id>
-            <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
-        </snapshotRepository>
-    </distributionManagement>
-
-    <modules>
-        <module>alto-model</module>
-        <module>alto-provider</module>
-        <module>alto-artifacts</module>
-        <module>features</module>
-        <module>alto-commons</module>
-        <module>alto-services</module>
-        <!--
-        <module>alto-karaf</module>
-        -->
-        <module>alto-northbound</module>
-    </modules>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-            </plugin>
-            <plugin>
-              <groupId>org.jacoco</groupId>
-              <artifactId>jacoco-maven-plugin</artifactId>
+  <modelVersion>4.0.0</modelVersion>
+  <prerequisites>
+    <maven>3.0</maven>
+  </prerequisites>
+
+  <parent>
+    <groupId>org.opendaylight.odlparent</groupId>
+    <artifactId>odlparent</artifactId>
+    <version>1.6.0-SNAPSHOT</version>
+    <relativePath/>
+  </parent>
+
+  <groupId>org.opendaylight.alto</groupId>
+  <artifactId>alto-parent</artifactId>
+  <version>0.2.0-SNAPSHOT</version>
+  <name>alto</name> <!-- Used by Sonar to set project name -->
+  <packaging>pom</packaging>
+
+  <scm>
+    <connection>scm:git:ssh://git.opendaylight.org:29418/alto.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/alto.git</developerConnection>
+    <url>https://wiki.opendaylight.org/view/ALTO:Main</url>
+    <tag>HEAD</tag>
+  </scm>
+
+  <modules>
+    <module>alto-model</module>
+    <module>alto-config</module> <!-- required by alto-manager -->
+    <module>alto-provider</module>
+    <module>alto-hosttracker</module>
+    <module>features</module>
+    <module>alto-commons</module>
+    <module>alto-manager</module>
+    <module>alto-services/api</module>
+    <module>alto-services/provider</module>
+    <module>alto-extensions</module>
+    <module>alto-northbound</module>
+    <!-- <module>alto-karaf</module> -->
+  </modules>
+
+  <properties>
+    <odl.version>1.6.0-SNAPSHOT</odl.version>
+    <karaf.shell.version>2.2.11</karaf.shell.version>
+
+    <!-- required by alto command line -->
+    <httpclient.version>4.4.1</httpclient.version>
+
+    <ietf.model.version>2010.09.24.8-SNAPSHOT</ietf.model.version>
+    <ietf.yang.types.version>2013.07.15.8-SNAPSHOT</ietf.yang.types.version>
+
+    <!-- used by yangtools, but the name is strange.
+         TODO: need more investigation -->
+    <config.version>0.4.0-SNAPSHOT</config.version>
+
+    <sal.version>0.10.0-SNAPSHOT</sal.version>
+    <war.version>${karaf.version}</war.version>
+    <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
+    <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
+    <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
+
+    <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
+
+    <controller.checkstyle.version> <!-- checkstyle artifact of controller -->
+      0.2.0-SNAPSHOT
+    </controller.checkstyle.version>
+    <controller.commons.northbound.version> <!-- required by alto-northbound -->
+      0.6.0-SNAPSHOT
+    </controller.commons.northbound.version>
+    <l2switch.version>0.3.0-SNAPSHOT</l2switch.version>
+    <ietf.topology.version>2013.10.21.8-SNAPSHOT</ietf.topology.version>
+    <commons.catalina.version>7.0.53.v201406061610</commons.catalina.version>
+    <commons.coyote.version>7.0.53.v201406070630</commons.coyote.version>
+    <commons.juli.version>7.0.53.v201406060720</commons.juli.version>
+    <commons.tomcat.api.version>7.0.53.v201406060720</commons.tomcat.api.version>
+    <commons.tomcat.util.version>7.0.53.v201406070630</commons.tomcat.util.version>
+  </properties>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.opendaylight.yangtools.model</groupId>
+        <artifactId>ietf-inet-types</artifactId>
+        <version>${ietf.model.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.opendaylight.yangtools.model</groupId>
+        <artifactId>ietf-yang-types-20130715</artifactId>
+        <version>${ietf.yang.types.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.httpcomponents</groupId>
+        <artifactId>httpclient-osgi</artifactId>
+        <version>${httpclient.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.httpcomponents</groupId>
+        <artifactId>httpcore-osgi</artifactId>
+        <version>${httpclient.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.opendaylight.controller</groupId>
+        <artifactId>sal-binding-api</artifactId>
+        <version>${mdsal.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.opendaylight.controller</groupId>
+        <artifactId>sal-binding-config</artifactId>
+        <version>${mdsal.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.opendaylight.controller</groupId>
+        <artifactId>sal-common-util</artifactId>
+        <version>${mdsal.version}</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin> <!-- used by most projects -->
+          <groupId>org.opendaylight.yangtools</groupId>
+          <artifactId>yang-maven-plugin</artifactId>
+          <version>${yangtools.version}</version>
+        </plugin>
+
+        <plugin> <!-- global checkstyle -->
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>${checkstyle.version}</version>
+
+          <executions>
+            <execution>
+              <phase>process-sources</phase>
+              <goals>
+                <goal>check</goal>
+              </goals>
+            </execution>
+          </executions>
+
+          <configuration>
+            <!-- TODO: remove before releasing -->
+            <failsOnError>true</failsOnError>
+            <configLocation>controller/checkstyle.xml</configLocation>
+            <consoleOutput>true</consoleOutput>
+            <includeTestSourceDirectory>true</includeTestSourceDirectory>
+            <sourceDirectory>${project.basedir}</sourceDirectory>
+            <excludes>**\/target\/,**\/bin\/,**\/third-party\/,**\/yang\/gen\/,**\/yang-gen-sal\/</excludes>
+          </configuration>
+
+          <dependencies>
+            <dependency>
+              <groupId>org.opendaylight.controller</groupId>
+              <artifactId>checkstyle</artifactId>
+              <version>${controller.checkstyle.version}</version>
+            </dependency>
+          </dependencies>
+        </plugin>
+
+        <plugin>
+          <groupId>org.jacoco</groupId>
+          <artifactId>jacoco-maven-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>prepare-ut-agent</id>
+              <phase>process-test-classes</phase>
+              <goals>
+                <goal>prepare-agent</goal>
+              </goals>
               <configuration>
-                <includes>
-                  <include>org.opendaylight.sfc.*</include>
-                </includes>
+                <destFile>${sonar.jacoco.reportPath}</destFile>
               </configuration>
-              <executions>
-                <execution>
-                  <id>pre-test</id>
-                  <goals>
-                    <goal>prepare-agent</goal>
-                  </goals>
-                </execution>
-                <execution>
-                  <id>post-test</id>
-                  <goals>
-                    <goal>report</goal>
-                  </goals>
-                  <phase>test</phase>
-                </execution>
-              </executions>
-            </plugin>
-        </plugins>
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-compiler-plugin</artifactId>
-                    <version>${compiler.version}</version>
-                    <configuration>
-                        <source>1.7</source>
-                        <target>1.7</target>
-                    </configuration>
-                </plugin>
-                <plugin>
-                    <groupId>org.ops4j.pax.exam</groupId>
-                    <artifactId>maven-paxexam-plugin</artifactId>
-                    <version>1.2.4</version>
-                </plugin>
-                <plugin>
-                    <artifactId>maven-clean-plugin</artifactId>
-                    <configuration>
-                        <filesets>
-                            <fileset>
-                                <directory>${jmxGeneratorPath}</directory>
-                                <includes>
-                                    <include>**</include>
-                                </includes>
-                            </fileset>
-                            <fileset>
-                                <directory>${salGeneratorPath}</directory>
-                                <includes>
-                                    <include>**</include>
-                                </includes>
-                            </fileset>
-                        </filesets>
-                    </configuration>
-                </plugin>
-                <plugin>
-                    <groupId>org.codehaus.mojo</groupId>
-                    <artifactId>build-helper-maven-plugin</artifactId>
-                    <version>${build.helper.version}</version>
-                    <executions>
-                        <execution>
-                            <id>add-source</id>
-                            <phase>generate-sources</phase>
-                            <goals>
-                                <goal>add-source</goal>
-                            </goals>
-                            <configuration>
-                                <sources>
-                                    <source>${jmxGeneratorPath}</source>
-                                    <source>${salGeneratorPath}</source>
-                                </sources>
-                            </configuration>
-                        </execution>
-                    </executions>
-                </plugin>
-                <plugin>
-                    <groupId>org.opendaylight.yangtools</groupId>
-                    <artifactId>yang-maven-plugin</artifactId>
-                    <version>0.7.0-SNAPSHOT</version>
-                </plugin>
-                <plugin>
-                    <groupId>org.apache.felix</groupId>
-                    <artifactId>maven-bundle-plugin</artifactId>
-                    <version>${maven.bundle.version}</version>
-                    <extensions>true</extensions>
-                    <configuration>
-                        <instructions>
-                            <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
-                        </instructions>
-                        <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
-                    </configuration>
-                </plugin>
-                <plugin>
-                   <groupId>org.jacoco</groupId>
-                   <artifactId>jacoco-maven-plugin</artifactId>
-                   <version>${jacoco.version}</version>
-                </plugin>
-            </plugins>
-        </pluginManagement>
-    </build>
+            </execution>
+            <execution>
+              <id>prepare-it-agent</id>
+              <phase>pre-integration-test</phase>
+              <goals>
+                <goal>prepare-agent</goal>
+              </goals>
+              <configuration>
+                <destFile>${sonar.jacoco.itReportPath}</destFile>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
 </project>