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-neon</artifactId>
8 <version>0.7.0-SNAPSHOT</version>
11 <artifactId>distribution-odl-neon-docker</artifactId>
12 <version>0.7.0-SNAPSHOT</version>
13 <packaging>pom</packaging>
15 <name>ccsdk-distribution :: opendaylight :: neon :: docker</name>
16 <description>Creates OpenDaylight container</description>
22 <image.name>onap/ccsdk-odl-neon-alpine-image</image.name>
23 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
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>${odl.karaf.artifactId}</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>
79 <artifactId>maven-resources-plugin</artifactId>
80 <version>2.6</version>
83 <id>copy-dockerfile</id>
85 <goal>copy-resources</goal>
86 </goals><!-- here the phase you need -->
87 <phase>validate</phase>
89 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
92 <directory>src/main/docker</directory>
94 <include>Dockerfile</include>
96 <filtering>true</filtering>
115 <groupId>io.fabric8</groupId>
116 <artifactId>docker-maven-plugin</artifactId>
117 <version>0.28.0</version>
118 <inherited>false</inherited>
122 <name>${image.name}</name>
124 <cleanup>try</cleanup>
125 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
126 <dockerFile>Dockerfile</dockerFile>
128 <tag>${project.docker.latestminortag.version}</tag>
129 <tag>${project.docker.latestfulltag.version}</tag>
130 <tag>${project.docker.latesttagtimestamp.version}</tag>
138 <id>generate-images</id>
139 <phase>package</phase>
147 <phase>${docker.push.phase}</phase>