1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.ccsdk.distribution</groupId>
7 <artifactId>distribution-odl-fluorine</artifactId>
8 <version>0.4.2-SNAPSHOT</version>
11 <artifactId>distribution-odl-fluorine-ubuntu</artifactId>
12 <version>0.4.2-SNAPSHOT</version>
13 <packaging>pom</packaging>
15 <name>ccsdk-distribution :: opendaylight :: ${project.artifactId}</name>
16 <description>Creates OpenDaylight container</description>
22 <image.name>onap/ccsdk-odl-fluorine-ubuntu-image</image.name>
30 <groupId>org.codehaus.groovy.maven</groupId>
31 <artifactId>gmaven-plugin</artifactId>
34 <phase>validate</phase>
39 <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
48 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-dependency-plugin</artifactId>
50 <version>3.0.0</version>
53 <id>get-odl-distribution</id>
54 <phase>validate</phase>
61 <groupId>org.opendaylight.integration</groupId>
62 <artifactId>karaf</artifactId>
63 <version>${ccsdk.opendaylight.version}</version>
66 <overWrite>true</overWrite>
67 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
70 <overWriteReleases>false</overWriteReleases>
71 <overWriteSnapshots>true</overWriteSnapshots>
72 <overWriteIfNewer>true</overWriteIfNewer>
77 <id>get-mariadb-connector-jar</id>
78 <phase>validate</phase>
85 <groupId>org.mariadb.jdbc</groupId>
86 <artifactId>mariadb-java-client</artifactId>
87 <version>${ccsdk.mariadb-connector-java.version}</version>
89 <overWrite>true</overWrite>
90 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
93 <overWriteReleases>false</overWriteReleases>
94 <overWriteSnapshots>true</overWriteSnapshots>
95 <overWriteIfNewer>true</overWriteIfNewer>
102 <artifactId>maven-resources-plugin</artifactId>
103 <version>2.6</version>
106 <id>copy-dockerfile</id>
108 <goal>copy-resources</goal>
109 </goals><!-- here the phase you need -->
110 <phase>validate</phase>
112 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
115 <directory>src/main/docker</directory>
117 <include>Dockerfile</include>
119 <filtering>true</filtering>
138 <groupId>io.fabric8</groupId>
139 <artifactId>docker-maven-plugin</artifactId>
140 <version>0.28.0</version>
141 <inherited>false</inherited>
145 <name>${image.name}</name>
147 <cleanup>try</cleanup>
148 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
149 <dockerFile>Dockerfile</dockerFile>
151 <tag>${project.docker.latestminortag.version}</tag>
152 <tag>${project.docker.latestfulltag.version}</tag>
153 <tag>${project.docker.latesttagtimestamp.version}</tag>
161 <id>generate-images</id>
162 <phase>package</phase>
170 <phase>${docker.push.phase}</phase>