<parent>
<groupId>org.openecomp.sdnc.oam</groupId>
<artifactId>installation</artifactId>
- <version>1.1.0-SNAPSHOT</version>
+ <version>1.1.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>org.openecomp.sdnc.oam</groupId>
<artifactId>installation-sdnc</artifactId>
- <version>1.1.0-SNAPSHOT</version>
+ <version>1.1.2-SNAPSHOT</version>
<name>Installation - sdnc</name>
<description>Creates SDN Controller Docker container</description>
<properties>
<image.name>openecomp/sdnc-image</image.name>
+ <sdnc.project.version>${project.version}</sdnc.project.version>
<sdnc.core.version>${project.version}</sdnc.core.version>
<sdnc.adaptors.version>${project.version}</sdnc.adaptors.version>
<sdnc.northbound.version>${project.version}</sdnc.northbound.version>
<sdnc.plugins.version>${project.version}</sdnc.plugins.version>
+ <sdnc.opendaylight.version>0.5.1-Boron-SR1</sdnc.opendaylight.version>
+ <sdnc.mysql-connector-java.version>5.1.39</sdnc.mysql-connector-java.version>
+ <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
</properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.integration</groupId>
+ <artifactId>distribution-karaf</artifactId>
+ <version>${sdnc.opendaylight.version}</version>
+ <type>tar.gz</type>
+ </dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>${sdnc.mysql-connector-java.version}</version>
+ <type>jar</type>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
<build>
<plugins>
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ println project.properties['sdnc.project.version'];
+ def versionArray;
+ if ( project.properties['sdnc.project.version'] != null ) {
+ versionArray =
+ project.properties['sdnc.project.version'].split('\\.');
+ }
+
+ if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT")) {
+ project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
+ } else {
+ project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
+ }
+
+ println 'New Tag for docker:' +
+ project.properties['project.docker.latesttag.version'];
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.16.5</version>
<inherited>false</inherited>
<configuration>
-
<images>
<image>
<name>${image.name}</name>
<dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
<tags>
<tag>${project.version}</tag>
- <tag>latest</tag>
+ <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
+ <tag>${project.docker.latesttag.version}</tag>
</tags>
</build>
</image>
</executions>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <id>get-odl-distribution</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.opendaylight.integration</groupId>
+ <artifactId>distribution-karaf</artifactId>
+ <version>${sdnc.opendaylight.version}</version>
+ <type>tar.gz</type>
+
+ <overWrite>true</overWrite>
+ <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <id>get-mysql-connector-jar</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>${sdnc.mysql-connector-java.version}</version>
+ <type>jar</type>
+
+ <overWrite>true</overWrite>
+ <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</resources>
</configuration>
</execution>
+
<execution>
<id>copy-tarballs</id>
<goals>
<resource>
<directory>src/main/resources</directory>
<includes>
- <include>*.tgz</include>
- <include>*.tar.gz</include>
<include>idmlight.db.mv.db</include>
</includes>
<filtering>false</filtering>
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
- <version>1.5.0</version>
+ <version>1.5.0</version>
<executions>
<execution>