Fix odlparent reference
[l2switch.git] / parent / pom.xml
index d435e8dcf7236bf8ac5215818603663e07be6643..dd8d5c7bbd305bd0e23203f7d93e0a2790c80423 100644 (file)
@@ -5,32 +5,39 @@
   <parent>
     <groupId>org.opendaylight.odlparent</groupId>
     <artifactId>odlparent</artifactId>
-    <version>1.4.2-SNAPSHOT</version>
+    <version>1.5.0-SNAPSHOT</version>
+    <relativePath/>
   </parent>
   <groupId>org.opendaylight.l2switch</groupId>
   <artifactId>l2switch-parent</artifactId>
-  <version>0.1.0-SNAPSHOT</version>
+  <version>0.2.0-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <properties>
     <codeGeneratorPath>src/main/yang-gen-code</codeGeneratorPath>
     <configCodeGeneratorPath>src/main/yang-gen-config</configCodeGeneratorPath>
     <nexus_proxy>http://nexus.opendaylight.org/content</nexus_proxy>
-    <mdsal.version>1.1-SNAPSHOT</mdsal.version>
-    <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
-    <ietf-yang-types.version>2010.09.24.4-SNAPSHOT</ietf-yang-types.version>
-    <sal.version>0.8.1-SNAPSHOT</sal.version>
-    <config.version>0.2.5-SNAPSHOT</config.version>
+    <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
+    <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
+    <ietf-yang-types.version>2010.09.24.7-SNAPSHOT</ietf-yang-types.version>
+    <jung2.version>2.0.1</jung2.version>
+    <config.version>0.3.0-SNAPSHOT</config.version>
+    <openflow.plugin.version>0.1.0-SNAPSHOT</openflow.plugin.version>
+    <dlux.version>0.2.0-SNAPSHOT</dlux.version>
+    <karaf.version>3.0.1</karaf.version>
+    <bundle.plugin.version>2.4.0</bundle.plugin.version>
+    <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
+    <config.packethandler.configfile>50-packethandler.xml</config.packethandler.configfile>
+    <config.loopremover.configfile>52-loopremover.xml</config.loopremover.configfile>
+    <config.arphandler.configfile>54-arphandler.xml</config.arphandler.configfile>
+    <config.addresstracker.configfile>56-addresstracker.xml</config.addresstracker.configfile>
+    <config.hosttracker.configfile>57-hosttracker.xml</config.hosttracker.configfile>
+    <config.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
   </properties>
 
   <dependencyManagement>
     <dependencies>
       <!-- SAL bundles -->
-      <dependency>
-        <groupId>org.opendaylight.controller</groupId>
-        <artifactId>sal</artifactId>
-        <version>${sal.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>yang-jmx-generator-plugin</artifactId>
-        <version>${config.version}</version>
+        <groupId>org.opendaylight.controller.model</groupId>
+        <artifactId>model-inventory</artifactId>
+        <version>${mdsal.version}</version>
       </dependency>
       <dependency>
         <groupId>org.opendaylight.controller.model</groupId>
-        <artifactId>model-inventory</artifactId>
+        <artifactId>model-topology</artifactId>
         <version>${mdsal.version}</version>
       </dependency>
       <dependency>
         <version>${ietf-yang-types.version}</version>
       </dependency>
       <dependency>
-        <groupId>org.opendaylight.controller.model</groupId>
+        <groupId>org.opendaylight.openflowplugin.model</groupId>
         <artifactId>model-flow-service</artifactId>
-        <version>${mdsal.version}</version>
+        <version>${openflow.plugin.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.opendaylight.controller.thirdparty</groupId>
+        <artifactId>net.sf.jung2</artifactId>
+        <version>${jung2.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.opendaylight.controller</groupId>
+        <artifactId>config-api</artifactId>
+        <version>${config.version}</version>
       </dependency>
     </dependencies>
   </dependencyManagement>
     <!-- OpenDayLight Released artifact -->
     <repository>
       <id>opendaylight-release</id>
-      <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
+      <url>${nexusproxy}/repositories/opendaylight.release/</url>
     </repository>
     <!-- OpenDayLight Snapshot artifact -->
     <snapshotRepository>
       <id>opendaylight-snapshot</id>
-      <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
+      <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
     </snapshotRepository>
     <site>
       <id>${project.artifactId}-site</id>
     </site>
   </distributionManagement>
 
+  <build>
+      <pluginManagement>
+          <plugins>
+              <plugin>
+                  <groupId>org.apache.maven.plugins</groupId>
+                  <artifactId>maven-compiler-plugin</artifactId>
+                  <version>${maven.compile.plugin.version}</version>
+                  <configuration>
+                      <source>${java.version.source}</source>
+                      <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>
+                  <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-code\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
+                </configuration>
+                <dependencies>
+                  <dependency>
+                    <groupId>org.opendaylight.controller</groupId>
+                    <artifactId>checkstyle</artifactId>
+                    <version>0.1.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>
+                  <groupId>org.codehaus.mojo</groupId>
+                  <artifactId>build-helper-maven-plugin</artifactId>
+                  <version>1.8</version>
+                  <executions>
+                      <execution>
+                          <id>add-source</id>
+                          <goals>
+                              <goal>add-source</goal>
+                          </goals>
+                          <phase>generate-sources</phase>
+                          <configuration>
+                              <sources>
+                                  <source>src/main/yang</source>
+                                  <source>${codeGeneratorPath}</source>
+                                  <source>${configCodeGeneratorPath}</source>
+                              </sources>
+                          </configuration>
+                      </execution>
+                  </executions>
+              </plugin>
+              <!--  cleans up auto generated code  -->
+              <plugin>
+                  <artifactId>maven-clean-plugin</artifactId>
+                  <configuration>
+                      <filesets>
+                          <fileset>
+                              <directory>${codeGeneratorPath}</directory>
+                              <directory>${configCodeGeneratorPath}</directory>
+                              <includes>
+                                  <include>**</include>
+                              </includes>
+                          </fileset>
+                      </filesets>
+                  </configuration>
+              </plugin>
+
+              <!-- Ignore/Execute plugin execution -->
+              <plugin>
+                  <groupId>org.eclipse.m2e</groupId>
+                  <artifactId>lifecycle-mapping</artifactId>
+                  <version>1.0.0</version>
+                  <configuration>
+                      <lifecycleMappingMetadata>
+                          <pluginExecutions>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.codehaus.mojo</groupId>
+                                      <artifactId>properties-maven-plugin</artifactId>
+                                      <versionRange>[0.0,)</versionRange>
+                                      <goals>
+                                          <goal>set-system-properties</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <ignore />
+                                  </action>
+                              </pluginExecution>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.codehaus.enunciate</groupId>
+                                      <artifactId>maven-enunciate-plugin</artifactId>
+                                      <versionRange>[0.0,)</versionRange>
+                                      <goals>
+                                          <goal>docs</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <ignore />
+                                  </action>
+                              </pluginExecution>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.jacoco</groupId>
+                                      <artifactId>jacoco-maven-plugin</artifactId>
+                                      <versionRange>[0.0,)</versionRange>
+                                      <goals>
+                                          <goal>prepare-agent</goal>
+                                          <goal>pre-test</goal>
+                                          <goal>post-test</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <ignore />
+                                  </action>
+                              </pluginExecution>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.ops4j.pax.exam</groupId>
+                                      <artifactId>maven-paxexam-plugin</artifactId>
+                                      <versionRange>[1.2.4,)</versionRange>
+                                      <goals>
+                                          <goal>generate-depends-file</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <execute>
+                                          <runOnIncremental>false</runOnIncremental>
+                                      </execute>
+                                  </action>
+                              </pluginExecution>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.apache.maven.plugins</groupId>
+                                      <artifactId>maven-checkstyle-plugin</artifactId>
+                                      <versionRange>[2.0,)</versionRange>
+                                      <goals>
+                                          <goal>check</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <ignore />
+                                  </action>
+                              </pluginExecution>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.opendaylight.yangtools</groupId>
+                                      <artifactId>yang-maven-plugin</artifactId>
+                                      <versionRange>[0.5,)</versionRange>
+                                      <goals>
+                                          <goal>generate-sources</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <execute />
+                                  </action>
+                              </pluginExecution>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.codehaus.groovy.maven</groupId>
+                                      <artifactId>gmaven-plugin</artifactId>
+                                      <versionRange>1.0</versionRange>
+                                      <goals>
+                                          <goal>execute</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <ignore />
+                                  </action>
+                              </pluginExecution>
+                              <pluginExecution>
+                                  <pluginExecutionFilter>
+                                      <groupId>org.apache.maven.plugins</groupId>
+                                      <artifactId>maven-enforcer-plugin</artifactId>
+                                      <versionRange>${enforcer.version}</versionRange>
+                                      <goals>
+                                          <goal>enforce</goal>
+                                      </goals>
+                                  </pluginExecutionFilter>
+                                  <action>
+                                      <ignore />
+                                  </action>
+                              </pluginExecution>
+                          </pluginExecutions>
+                      </lifecycleMappingMetadata>
+                  </configuration>
+              </plugin>
+              <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <version>${bundle.plugin.version}</version>
+              </plugin>
+          </plugins>
+      </pluginManagement>
+      <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>build-helper-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-checkstyle-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.jacoco</groupId>
+            <artifactId>jacoco-maven-plugin</artifactId>
+            <configuration>
+              <includes>
+                <include>org.opendaylight.l2switch.*</include>
+              </includes>
+            </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>
+  </build>
+
+
 </project>