Check time expiry before attempting to format notification
[netconf.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 7bea315dfd4d723f0f952df1c3a60391677709ef..2307bccd4025f78587023ecaae8fea4f7d10ba59 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
 <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>
 
     <parent>
         <groupId>org.opendaylight.odlparent</groupId>
-        <artifactId>odlparent</artifactId>
-        <version>1.7.0-SNAPSHOT</version>
+        <artifactId>odlparent-lite</artifactId>
+        <version>4.0.8</version>
+        <relativePath/>
     </parent>
 
     <groupId>org.opendaylight.netconf</groupId>
-    <artifactId>netconf-parent</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <artifactId>netconf-aggregator</artifactId>
+    <version>1.6.0-SNAPSHOT</version>
     <packaging>pom</packaging>
     <name>${project.artifactId}</name>
 
-    <modules>
-        <module>opendaylight/netconf</module>
-        <module>opendaylight/restconf</module>
+    <properties>
+        <maven.deploy.skip>true</maven.deploy.skip>
+        <maven.install.skip>true</maven.install.skip>
+    </properties>
 
+    <modules>
         <module>features</module>
         <module>karaf</module>
+        <module>netconf</module>
+        <module>restconf</module>
     </modules>
 
-    <properties>
-        <aaa.version>0.4.0-SNAPSHOT</aaa.version>
-        <akka.version>2.3.14</akka.version>
-        <commons.logback_settings.version>0.3.0-SNAPSHOT</commons.logback_settings.version>
-        <commons.opendaylight.version>1.7.0-SNAPSHOT</commons.opendaylight.version>
-        <config.version>0.5.0-SNAPSHOT</config.version>
-        <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
-        <exi.nagasena.version>0000.0002.0053.0</exi.nagasena.version>
-        <features.test.version>1.7.0-SNAPSHOT</features.test.version>
-        <ietf-inet-types.version>2010.09.24.9-SNAPSHOT</ietf-inet-types.version>
-        <ietf-restconf.version>2013.10.19.9-SNAPSHOT</ietf-restconf.version>
-        <ietf-topology.version>2013.10.21.9-SNAPSHOT</ietf-topology.version>
-        <ietf-yang-types.version>2010.09.24.9-SNAPSHOT</ietf-yang-types.version>
-
-        <mdsal.version>2.1.0-SNAPSHOT</mdsal.version>
-        <mdsal.model.version>0.9.0-SNAPSHOT</mdsal.model.version>
-        <controller.mdsal.version>1.4.0-SNAPSHOT</controller.mdsal.version>
-        <netconf.version>1.1.0-SNAPSHOT</netconf.version>
-        <restconf.version>1.4.0-SNAPSHOT</restconf.version>
-        <protocol-framework.version>0.8.0-SNAPSHOT</protocol-framework.version>
-        <sshd-core.version>0.14.0</sshd-core.version>
-        <scala.major.version>2.11</scala.major.version>
-        <scala.minor.version>7</scala.minor.version>
-        <surefire.version>2.15</surefire.version>
-        <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
-
-        <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
-        <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
-
-    </properties>
-
-
-    <dependencyManagement>
-      <dependencies>
-        <dependency>
-            <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>yangtools-artifacts</artifactId>
-            <version>${yangtools.version}</version>
-            <type>pom</type>
-            <scope>import</scope>
-        </dependency>
-        <dependency>
-          <groupId>org.opendaylight.mdsal</groupId>
-          <artifactId>mdsal-artifacts</artifactId>
-          <version>${mdsal.version}</version>
-          <type>pom</type>
-          <scope>import</scope>
-        </dependency>
-        <dependency>
-          <groupId>org.opendaylight.mdsal.model</groupId>
-          <artifactId>mdsal-model-artifacts</artifactId>
-          <version>${mdsal.model.version}</version>
-          <type>pom</type>
-          <scope>import</scope>
-        </dependency>
-        <dependency>
-          <groupId>org.opendaylight.aaa</groupId>
-          <artifactId>aaa-artifacts</artifactId>
-          <version>${aaa.version}</version>
-          <type>pom</type>
-          <scope>import</scope>
-        </dependency>
-        <dependency>
-          <groupId>org.opendaylight.controller</groupId>
-          <artifactId>config-artifacts</artifactId>
-          <version>${config.version}</version>
-          <type>pom</type>
-          <scope>import</scope>
-        </dependency>
-        <dependency>
-          <groupId>org.opendaylight.controller</groupId>
-          <artifactId>mdsal-artifacts</artifactId>
-          <version>${controller.mdsal.version}</version>
-          <type>pom</type>
-          <scope>import</scope>
-        </dependency>
-      </dependencies>
-    </dependencyManagement>
-
-    <build>
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-checkstyle-plugin</artifactId>
-                    <configuration>
-                        <failsOnError>true</failsOnError>
-                        <configLocation>controller/checkstyle.xml</configLocation>
-                        <consoleOutput>true</consoleOutput>
-                        <includeTestSourceDirectory>true</includeTestSourceDirectory>
-                        <sourceDirectory>${project.basedir}</sourceDirectory>
-                        <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
-                        <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/,**\/protobuff\/,**\/src\/main\/resources\/archetype-resources\/**\/*.java</excludes>
-                    </configuration>
-                    <dependencies>
-                        <dependency>
-                            <groupId>org.opendaylight.controller</groupId>
-                            <artifactId>checkstyle</artifactId>
-                            <version>0.3.0-SNAPSHOT</version>
-                        </dependency>
-                    </dependencies>
-                    <executions>
-                        <execution>
-                            <goals>
-                                <goal>check</goal>
-                            </goals>
-                            <phase>process-sources</phase>
-                        </execution>
-                    </executions>
-                </plugin>
-                <plugin>
-                    <groupId>org.apache.felix</groupId>
-                    <artifactId>maven-bundle-plugin</artifactId>
-                    <extensions>true</extensions>
-                    <configuration>
-                        <instructions>
-                            <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
-                        </instructions>
-                    </configuration>
-                </plugin>
-                <plugin>
-                    <groupId>org.opendaylight.yangtools</groupId>
-                    <artifactId>yang-maven-plugin</artifactId>
-                    <version>${yangtools.version}</version>
-                    <executions>
-                        <execution>
-                            <id>config</id>
-                            <goals>
-                                <goal>generate-sources</goal>
-                            </goals>
-                            <configuration>
-                                <codeGenerators>
-                                    <generator>
-                                        <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
-                                        <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
-                                        <additionalConfiguration>
-                                            <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
-                                        </additionalConfiguration>
-                                    </generator>
-                                    <generator>
-                                        <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
-                                        <outputBaseDir>${salGeneratorPath}</outputBaseDir>
-                                    </generator>
-                                </codeGenerators>
-                                <inspectDependencies>true</inspectDependencies>
-                            </configuration>
-                        </execution>
-                    </executions>
-                    <dependencies>
-                        <dependency>
-                            <groupId>org.opendaylight.controller</groupId>
-                            <artifactId>yang-jmx-generator-plugin</artifactId>
-                            <version>${config.version}</version>
-                        </dependency>
-                        <dependency>
-                            <groupId>org.opendaylight.mdsal</groupId>
-                            <artifactId>maven-sal-api-gen-plugin</artifactId>
-                            <version>${mdsal.model.version}</version>
-                            <type>jar</type>
-                        </dependency>
-                        <dependency>
-                            <groupId>org.opendaylight.mdsal</groupId>
-                            <artifactId>yang-binding</artifactId>
-                            <version>${mdsal.model.version}</version>
-                            <type>jar</type>
-                        </dependency>
-                    </dependencies>
-                </plugin>
-                <plugin>
-                    <groupId>org.codehaus.mojo</groupId>
-                    <artifactId>build-helper-maven-plugin</artifactId>
-                    <version>1.8</version>
-                    <executions>
-                        <execution>
-                            <id>add-source</id>
-                            <phase>generate-sources</phase>
-                            <goals>
-                                <goal>add-source</goal>
-                            </goals>
-                            <configuration>
-                                <sources>
-                                    <source>${project.build.directory}/generated-sources/config</source>;
-                                </sources>
-                            </configuration>
-                        </execution>
-                    </executions>
-                </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>
-            </plugins>
-        </pluginManagement>
-    </build>
-
     <profiles>
         <profile>
-            <id>integrationtests</id>
+            <id>sonar-jacoco-aggregate</id>
             <activation>
-                <activeByDefault>false</activeByDefault>
+                <property>
+                    <name>odl.jacoco.aggregateFile</name>
+                </property>
             </activation>
-            <modules>
-                <!-- module>opendaylight/netconf/netconf-it</module -->
-            </modules>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.jacoco</groupId>
+                        <artifactId>jacoco-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>merge</id>
+                                <goals>
+                                    <goal>merge</goal>
+                                </goals>
+                                <phase>generate-resources</phase>
+                                <configuration>
+                                    <destFile>${odl.jacoco.aggregateFile}</destFile>
+                                    <fileSets>
+                                        <fileSet>
+                                            <directory>${project.basedir}</directory>
+                                            <includes>
+                                                <include>**/target/code-coverage/*.exec</include>
+                                            </includes>
+                                        </fileSet>
+                                    </fileSets>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
         </profile>
     </profiles>
 </project>