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.5.0-SNAPSHOT</version>
11 <artifactId>distribution-odl-fluorine-alpine</artifactId>
12 <version>0.5.0-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-alpine-image</image.name>
29 <groupId>org.codehaus.groovy.maven</groupId>
30 <artifactId>gmaven-plugin</artifactId>
33 <phase>validate</phase>
38 <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
47 <groupId>org.apache.maven.plugins</groupId>
48 <artifactId>maven-dependency-plugin</artifactId>
49 <version>3.0.0</version>
52 <id>get-odl-distribution</id>
53 <phase>validate</phase>
60 <groupId>org.opendaylight.integration</groupId>
61 <artifactId>karaf</artifactId>
62 <version>${ccsdk.opendaylight.version}</version>
65 <overWrite>true</overWrite>
66 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
69 <overWriteReleases>false</overWriteReleases>
70 <overWriteSnapshots>true</overWriteSnapshots>
71 <overWriteIfNewer>true</overWriteIfNewer>
76 <id>get-mariadb-connector-jar</id>
77 <phase>validate</phase>
84 <groupId>org.mariadb.jdbc</groupId>
85 <artifactId>mariadb-java-client</artifactId>
86 <version>${ccsdk.mariadb-connector-java.version}</version>
88 <overWrite>true</overWrite>
89 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
92 <overWriteReleases>false</overWriteReleases>
93 <overWriteSnapshots>true</overWriteSnapshots>
94 <overWriteIfNewer>true</overWriteIfNewer>
101 <artifactId>maven-resources-plugin</artifactId>
102 <version>2.6</version>
105 <id>copy-dockerfile</id>
107 <goal>copy-resources</goal>
108 </goals><!-- here the phase you need -->
109 <phase>validate</phase>
111 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
114 <directory>src/main/docker</directory>
116 <include>Dockerfile</include>
118 <filtering>true</filtering>
137 <groupId>io.fabric8</groupId>
138 <artifactId>docker-maven-plugin</artifactId>
139 <version>0.28.0</version>
140 <inherited>false</inherited>
144 <name>${image.name}</name>
146 <cleanup>try</cleanup>
147 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
148 <dockerFile>Dockerfile</dockerFile>
150 <tag>${project.docker.latestminortag.version}</tag>
151 <tag>${project.docker.latestfulltag.version}</tag>
152 <tag>${project.docker.latesttagtimestamp.version}</tag>
160 <id>generate-images</id>
161 <phase>package</phase>
169 <phase>${docker.push.phase}</phase>