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-silicon</artifactId>
8 <version>1.2.1-SNAPSHOT</version>
11 <artifactId>distribution-odl-silicon-docker</artifactId>
12 <packaging>pom</packaging>
14 <name>ccsdk-distribution :: opendaylight :: silicon :: docker</name>
15 <description>Creates OpenDaylight container</description>
21 <image.name>onap/ccsdk-odl-silicon-alpine-image</image.name>
22 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
23 <odl.shiro.version>0.13.3</odl.shiro.version>
24 <odl.ops4j.version>7.3.13</odl.ops4j.version>
31 <groupId>org.codehaus.groovy.maven</groupId>
32 <artifactId>gmaven-plugin</artifactId>
33 <version>1.0</version>
36 <phase>validate</phase>
41 <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>
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 <groupId>com.highstreet-technologies.ops4j.pax.web</groupId>
100 <artifactId>pax-web-jetty</artifactId>
101 <version>${odl.ops4j.version}</version>
102 <outputDirectory>${project.build.directory}/docker-stage/system/org/ops4j/pax/web/pax-web-jetty/${odl.ops4j.version}</outputDirectory>
103 <destFileName>pax-web-jetty-${odl.ops4j.version}.jar</destFileName>
104 <excludes>*</excludes>
107 <overWriteReleases>false</overWriteReleases>
108 <overWriteSnapshots>true</overWriteSnapshots>
109 <overWriteIfNewer>true</overWriteIfNewer>
116 <artifactId>maven-resources-plugin</artifactId>
117 <version>2.6</version>
120 <id>copy-dockerfile</id>
122 <goal>copy-resources</goal>
123 </goals><!-- here the phase you need -->
124 <phase>validate</phase>
126 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
129 <directory>src/main/docker</directory>
131 <include>Dockerfile</include>
133 <filtering>true</filtering>
136 <directory>src/main/odlscripts</directory>
140 <filtering>false</filtering>
157 <groupId>io.fabric8</groupId>
158 <artifactId>docker-maven-plugin</artifactId>
159 <version>0.34.0</version>
160 <inherited>false</inherited>
164 <name>${image.name}</name>
166 <cleanup>try</cleanup>
167 <noCache>true</noCache>
168 <contextDir>${basedir}/target/docker-stage</contextDir>
169 <dockerFile>Dockerfile</dockerFile>
171 <tag>${project.docker.latestminortag.version}</tag>
172 <tag>${project.docker.latestfulltag.version}</tag>
173 <tag>${project.docker.latesttagtimestamp.version}</tag>
178 <verbose>${docker.verbose}</verbose>
179 <skipPush>${docker.skip.push}</skipPush>
183 <id>build-push-images</id>