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-sulfur</artifactId>
8 <version>1.4.1-SNAPSHOT</version>
11 <artifactId>distribution-odl-sulfur-docker</artifactId>
12 <packaging>pom</packaging>
14 <name>ccsdk-distribution :: opendaylight :: sulfur :: docker</name>
15 <description>Creates OpenDaylight container</description>
21 <image.name>onap/ccsdk-odl-sulfur-alpine-image</image.name>
22 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
23 <odl.shiro.version>0.15.5</odl.shiro.version>
30 <groupId>org.codehaus.groovy.maven</groupId>
31 <artifactId>gmaven-plugin</artifactId>
32 <version>1.0</version>
35 <phase>validate</phase>
40 <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>${odl.karaf.artifactId}</artifactId>
62 <version>${ccsdk.opendaylight.version}</version>
64 <overWrite>true</overWrite>
65 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
68 <overWriteReleases>false</overWriteReleases>
69 <overWriteSnapshots>true</overWriteSnapshots>
70 <overWriteIfNewer>true</overWriteIfNewer>
74 <id>copy-with-alternalte-repo-2</id>
75 <phase>generate-sources</phase>
82 <groupId>com.highstreet-technologies.aaa</groupId>
83 <artifactId>aaa-authn-api</artifactId>
84 <version>${odl.shiro.version}</version>
85 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/aaa/aaa-authn-api/${odl.shiro.version}</outputDirectory>
86 <destFileName>aaa-authn-api-${odl.shiro.version}.jar</destFileName>
87 <excludes>*</excludes>
90 <overWriteReleases>false</overWriteReleases>
91 <overWriteSnapshots>true</overWriteSnapshots>
92 <overWriteIfNewer>true</overWriteIfNewer>
99 <artifactId>maven-resources-plugin</artifactId>
100 <version>2.6</version>
103 <id>copy-dockerfile</id>
105 <goal>copy-resources</goal>
106 </goals><!-- here the phase you need -->
107 <phase>validate</phase>
109 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
112 <directory>src/main/docker</directory>
114 <include>Dockerfile</include>
116 <filtering>true</filtering>
119 <directory>src/main/odlscripts</directory>
123 <filtering>false</filtering>
140 <groupId>io.fabric8</groupId>
141 <artifactId>docker-maven-plugin</artifactId>
142 <version>0.34.0</version>
143 <inherited>false</inherited>
147 <name>${image.name}</name>
149 <cleanup>try</cleanup>
150 <noCache>true</noCache>
151 <contextDir>${basedir}/target/docker-stage</contextDir>
152 <dockerFile>Dockerfile</dockerFile>
154 <tag>${project.docker.latestminortag.version}</tag>
155 <tag>${project.docker.latestfulltag.version}</tag>
156 <tag>${project.docker.latesttagtimestamp.version}</tag>
161 <verbose>${docker.verbose}</verbose>
162 <skipPush>${docker.skip.push}</skipPush>
166 <id>build-push-images</id>