BUG-48: basic exporter implementation
[bgpcep.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 1b8c047bfad2fb564c6c28fd429ed880dc7acc91..b734403e08f0558ab3662cf0b104ee262c6e5022 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -5,32 +5,35 @@
        <name>OpenDaylight protocols</name>
        <url>index.html</url>
        <modelVersion>4.0.0</modelVersion>
-       <groupId>org.opendaylight.protocol</groupId>
+       <groupId>org.opendaylight.bgpcep</groupId>
        <artifactId>protocol-parent</artifactId>
        <description>OpenDaylight BGP+PCEP protocol parent</description>
-       <version>0.1</version>
+       <version>0.3.0-SNAPSHOT</version>
        <packaging>pom</packaging>
+
        <properties>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <commonscodec.version>1.7</commonscodec.version>
+               <dependency.version>2.8</dependency.version>
+               <guava.version>14.0.1</guava.version>
                <java.version.source>1.7</java.version.source>
                <java.version.target>1.7</java.version.target>
-               <jacoco.version>0.6.2.201302030002</jacoco.version>
-               <commons.io.version>2.4</commons.io.version>
-               <checkstyle.version>2.9.1</checkstyle.version>
-               <pmd.version>2.7.1</pmd.version>
-               <dependency.version>2.8</dependency.version>
-               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <cxf.version>2.6.5</cxf.version>
-               <slf4j.version>1.7.2</slf4j.version>
-               <logback.version>1.0.7</logback.version>
                <junit.version>4.10</junit.version>
-               <maven.compiler.version>2.5.1</maven.compiler.version>
-               <maven.bundle.version>2.3.7</maven.bundle.version>
-               <jgrapht.version>0.8.3-SNAPSHOT</jgrapht.version>
-               <surefire.version>2.14.1</surefire.version>
-               <commonscodec.version>1.7</commonscodec.version>
-               <guava.version>13.0.1</guava.version>
+               <logback.version>1.0.7</logback.version>
+               <maven.bundle.version>2.4.0</maven.bundle.version>
+               <maven.compiler.version>3.1</maven.compiler.version>
+               <maven.jar.version>2.4</maven.jar.version>
+               <maven.shade.version>2.1</maven.shade.version>
+               <mockito.version>1.9.5</mockito.version>
+               <netty.version>4.0.10.Final</netty.version>
+               <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
+               <slf4j.version>1.7.2</slf4j.version>
+               <surefire.version>2.15</surefire.version>
                <osgi.version>5.0.0</osgi.version>
-               <osgi.compendium.version>4.0.0</osgi.compendium.version>
+
+               <yangtools.version>0.5.9-SNAPSHOT</yangtools.version>
+               <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
+               <ietf.types.version>2010.09.24.1</ietf.types.version>
        </properties>
        <prerequisites>
                <maven>3.0.4</maven>
                <module>bgp</module>
                <module>concepts</module>
                <module>framework</module>
+               <module>integration-tests</module>
                <module>mockito-configuration</module>
                <module>pcep</module>
+               <module>programming</module>
+               <module>rsvp</module>
+               <module>topology</module>
                <module>util</module>
        </modules>
 
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-javadoc-plugin</artifactId>
-                               <version>2.8.1</version>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.jacoco</groupId>
-                               <artifactId>jacoco-maven-plugin</artifactId>
-                               <version>${jacoco.version}</version>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-checkstyle-plugin</artifactId>
                                <version>2.9.1</version>
                        </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-pmd-plugin</artifactId>
-                               <version>${pmd.version}</version>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-antrun-plugin</artifactId>
-                               <version>${maven.antrun.version}</version>
-                       </plugin>
                </plugins>
        </reporting>
 
        <distributionManagement>
-               <site>
-                       <id>${project.artifactId}</id>
-                       <name>NPS-APPLICATION Project site</name>
-                       <url>${basedir}/target/site/${project.artifactId}</url>
-               </site>
-               <!-- mock repository to allow deploy phase without real deployment -->
+               <!-- OpenDayLight Released artifact -->
                <repository>
-                       <id>targetRepo</id>
-                       <name>Target folder as mock repository</name>
-                       <url>file://${basedir}/target/deploy</url>
+                       <id>opendaylight-release</id>
+                       <url>${nexusproxy}/repositories/opendaylight.release/</url>
                </repository>
+               <!-- OpenDayLight Snapshot artifact -->
+               <snapshotRepository>
+                       <id>opendaylight-snapshot</id>
+                       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
+               </snapshotRepository>
+               <site>
+                       <id>${project.artifactId}-site</id>
+                       <url>./</url>
+               </site>
        </distributionManagement>
 
        <build>
                                        <testTarget>${java.version.target}</testTarget>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.jacoco</groupId>
-                               <artifactId>jacoco-maven-plugin</artifactId>
-                               <version>${jacoco.version}</version>
-                               <executions>
-                                       <execution>
-                                               <goals>
-                                                       <goal>prepare-agent</goal>
-                                               </goals>
-                                       </execution>
-                                       <execution>
-                                               <id>report</id>
-                                               <phase>prepare-package</phase>
-                                               <goals>
-                                                       <goal>check</goal>
-                                                       <goal>report</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <outputDirectory>${basedir}/target/jacoco</outputDirectory>
-                                                       <haltOnFailure>false</haltOnFailure>
-                                                       <check>
-                                                               <classRatio>80</classRatio>
-                                                       </check>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-checkstyle-plugin</artifactId>
-                               <version>2.9.1</version>
-                               <configuration>
-                                       <configLocation>build/checkstyle/checkstyle-checker.xml</configLocation>
-                                       <outputDirectory>${basedir}/target/checkstyle/report</outputDirectory>
-                               </configuration>
-                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
                                <version>${surefire.version}</version>
                                <configuration>
                                        <redirectTestOutputToFile>true</redirectTestOutputToFile>
-                                       <parallel>classes</parallel>
+                                       <!--parallel>classes</parallel>
                                        <forkCount>1C</forkCount>
                                        <reuseForks>false</reuseForks>
-                                       <perCoreThreadCount>true</perCoreThreadCount>
-                                       <threadCount>2</threadCount>
+                                       <perCoreThreadCount>true</perCoreThreadCount-->
+                                       <threadCount>1</threadCount>
                                </configuration>
                        </plugin>
 
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-pmd-plugin</artifactId>
-                               <version>${pmd.version}</version>
-                               <configuration>
-                                       <targetJdk>${java.version.target}</targetJdk>
-                                       <rulesets>
-                                               <ruleset>rulesets/basic.xml</ruleset>
-                                               <ruleset>rulesets/finalizers.xml</ruleset>
-                                               <ruleset>rulesets/imports.xml</ruleset>
-                                               <ruleset>rulesets/junit.xml</ruleset>
-                                               <!--ruleset>rulesets/optimizations.xml</ruleset -->
-                                               <ruleset>rulesets/strings.xml</ruleset>
-                                               <ruleset>rulesets/unusedcode.xml</ruleset>
-                                       </rulesets>
-                               </configuration>
-                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-dependency-plugin</artifactId>
                                <version>${dependency.version}</version>
                                <configuration>
-                                       <!--failOnWarning>true</failOnWarning -->
+                                       <failOnWarning>true</failOnWarning>
                                        <ignoreNonCompile>true</ignoreNonCompile>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.fusesource.mvnplugins</groupId>
-                               <artifactId>maven-graph-plugin</artifactId>
-                               <version>1.4</version>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>build-helper-maven-plugin</artifactId>
+            <plugin>
+                <!-- Let eclipse know about the generated sources -->
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
                                <version>1.8</version>
-                       </plugin>
+                <executions>
+                    <execution>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>add-source</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>target/generated-sources/sal</source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
                                        <configuration>
                                                <lifecycleMappingMetadata>
                                                        <pluginExecutions>
-                                                               <pluginExecution>
-                                                                       <pluginExecutionFilter>
-                                                                               <groupId>org.jacoco</groupId>
-                                                                               <artifactId>
-                                                                                       jacoco-maven-plugin
-                                                                               </artifactId>
-                                                                               <versionRange>
-                                                                                       [0.6.2.201302030002,)
-                                                                               </versionRange>
-                                                                               <goals>
-                                                                                       <goal>prepare-agent</goal>
-                                                                               </goals>
-                                                                       </pluginExecutionFilter>
-                                                                       <action>
-                                                                               <ignore></ignore>
-                                                                       </action>
-                                                               </pluginExecution>
                                                                <pluginExecution>
                                                                        <pluginExecutionFilter>
                                                                                <groupId>pl.project13.maven</groupId>
                                                                                <artifactId>git-commit-id-plugin</artifactId>
-                                                                               <versionRange>
-                                                                                       [2.1.4,)
-                                                                               </versionRange>
+                                                                               <versionRange>[2.1.4,)</versionRange>
                                                                                <goals>
                                                                                        <goal>revision</goal>
                                                                                </goals>
                                                                                <ignore></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>
+                                        <ignore></ignore>
+                                    </action>
+                                </pluginExecution>
                                                        </pluginExecutions>
                                                </lifecycleMappingMetadata>
                                        </configuration>
                </pluginManagement>
        </build>
 
+       <repositories>
+               <repository>
+                       <id>opendaylight-release</id>
+                       <name>opendaylight-release</name>
+                       <url>${nexusproxy}/repositories/opendaylight.release/</url>
+               </repository>
+               <repository>
+                       <id>opendaylight-snapshot</id>
+                       <name>opendaylight-snapshot</name>
+                       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
+               </repository>
+       </repositories>
+
        <pluginRepositories>
                <pluginRepository>
-                       <id>mvnplugins.fusesource.org</id>
-                       <url>http://mvnplugins.fusesource.org/repo/release</url>
-                       <releases>
-                               <enabled>true</enabled>
-                       </releases>
+                       <id>opendaylight-release</id>
+                       <name>opendaylight-release</name>
+                       <url>${nexusproxy}/repositories/opendaylight.release/</url>
+               </pluginRepository>
+               <pluginRepository>
+                       <id>opendaylight-snapshot</id>
+                       <name>opendaylight-snapshot</name>
+                       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
                </pluginRepository>
        </pluginRepositories>
 </project>