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-aluminum</artifactId>
8 <version>1.1.6-SNAPSHOT</version>
11 <artifactId>distribution-odl-aluminum-docker</artifactId>
12 <packaging>pom</packaging>
14 <name>ccsdk-distribution :: opendaylight :: aluminum :: docker</name>
15 <description>Creates OpenDaylight container</description>
21 <image.name>onap/ccsdk-odl-aluminum-alpine-image</image.name>
22 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
23 <odl.shiro.version>0.12.3</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>
65 <overWrite>true</overWrite>
66 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
69 <overWriteReleases>false</overWriteReleases>
70 <overWriteSnapshots>true</overWriteSnapshots>
71 <overWriteIfNewer>true</overWriteIfNewer>
75 <id>copy-with-alternalte-repo-2</id>
76 <phase>generate-sources</phase>
83 <groupId>com.highstreet-technologies.aaa</groupId>
84 <artifactId>aaa-shiro</artifactId>
85 <version>${odl.shiro.version}</version>
86 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/aaa/aaa-shiro/${odl.shiro.version}</outputDirectory>
87 <destFileName>aaa-shiro-${odl.shiro.version}.jar</destFileName>
88 <excludes>*</excludes>
91 <groupId>com.highstreet-technologies.aaa</groupId>
92 <artifactId>aaa-authn-api</artifactId>
93 <version>${odl.shiro.version}</version>
94 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/aaa/aaa-authn-api/${odl.shiro.version}</outputDirectory>
95 <destFileName>aaa-authn-api-${odl.shiro.version}.jar</destFileName>
96 <excludes>*</excludes>
99 <overWriteReleases>false</overWriteReleases>
100 <overWriteSnapshots>true</overWriteSnapshots>
101 <overWriteIfNewer>true</overWriteIfNewer>
108 <artifactId>maven-resources-plugin</artifactId>
109 <version>2.6</version>
112 <id>copy-dockerfile</id>
114 <goal>copy-resources</goal>
115 </goals><!-- here the phase you need -->
116 <phase>validate</phase>
118 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
121 <directory>src/main/docker</directory>
123 <include>Dockerfile</include>
125 <filtering>true</filtering>
128 <directory>src/main/odlscripts</directory>
132 <filtering>false</filtering>
149 <groupId>io.fabric8</groupId>
150 <artifactId>docker-maven-plugin</artifactId>
151 <version>0.34.0</version>
152 <inherited>false</inherited>
156 <name>${image.name}</name>
158 <cleanup>try</cleanup>
159 <contextDir>${basedir}/target/docker-stage</contextDir>
160 <dockerFile>Dockerfile</dockerFile>
162 <tag>${project.docker.latestminortag.version}</tag>
163 <tag>${project.docker.latestfulltag.version}</tag>
164 <tag>${project.docker.latesttagtimestamp.version}</tag>
169 <verbose>${docker.verbose}</verbose>
170 <skipPush>${docker.skip.push}</skipPush>
174 <id>build-push-images</id>