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-phosphorus</artifactId>
8 <version>1.4.2-SNAPSHOT</version>
11 <artifactId>distribution-odl-phosphorus-docker</artifactId>
12 <packaging>pom</packaging>
14 <name>ccsdk-distribution :: opendaylight :: phosphorus :: docker</name>
15 <description>Creates OpenDaylight container</description>
21 <image.name>onap/ccsdk-odl-phosphorus-alpine-image</image.name>
22 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
23 <odl.shiro.version>0.14.7</odl.shiro.version>
24 <odl.netconf.version>2.0.11</odl.netconf.version>
25 <odl.ops4j.version>7.3.19</odl.ops4j.version>
26 <odl.pax.logging.version>2.0.10</odl.pax.logging.version>
27 <patch.pax.logging.version>2.0.14</patch.pax.logging.version>
28 <odl.karaf.framework.version>4.3.3</odl.karaf.framework.version>
35 <groupId>org.codehaus.groovy.maven</groupId>
36 <artifactId>gmaven-plugin</artifactId>
37 <version>1.0</version>
40 <phase>validate</phase>
45 <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
52 <groupId>org.apache.maven.plugins</groupId>
53 <artifactId>maven-dependency-plugin</artifactId>
54 <version>3.0.0</version>
57 <id>get-odl-distribution</id>
58 <phase>validate</phase>
65 <groupId>org.opendaylight.integration</groupId>
66 <artifactId>${odl.karaf.artifactId}</artifactId>
67 <version>${ccsdk.opendaylight.version}</version>
69 <overWrite>true</overWrite>
70 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
73 <overWriteReleases>false</overWriteReleases>
74 <overWriteSnapshots>true</overWriteSnapshots>
75 <overWriteIfNewer>true</overWriteIfNewer>
79 <id>copy-with-alternalte-repo-2</id>
80 <phase>generate-sources</phase>
87 <groupId>com.highstreet-technologies.aaa</groupId>
88 <artifactId>aaa-authn-api</artifactId>
89 <version>${odl.shiro.version}</version>
90 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/aaa/aaa-authn-api/${odl.shiro.version}</outputDirectory>
91 <destFileName>aaa-authn-api-${odl.shiro.version}.jar</destFileName>
92 <excludes>*</excludes>
95 <groupId>com.highstreet-technologies.ops4j.pax.web</groupId>
96 <artifactId>pax-web-jetty</artifactId>
97 <version>${odl.ops4j.version}</version>
98 <outputDirectory>${project.build.directory}/docker-stage/system/org/ops4j/pax/web/pax-web-jetty/${odl.ops4j.version}</outputDirectory>
99 <destFileName>pax-web-jetty-${odl.ops4j.version}.jar</destFileName>
100 <excludes>*</excludes>
103 <groupId>com.highstreet-technologies.netconf</groupId>
104 <artifactId>sal-netconf-connector</artifactId>
105 <version>${odl.netconf.version}</version>
106 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/netconf/sal-netconf-connector/${odl.netconf.version}</outputDirectory>
107 <destFileName>sal-netconf-connector-${odl.netconf.version}.jar</destFileName>
108 <excludes>*</excludes>
111 <groupId>org.ops4j.pax.logging</groupId>
112 <artifactId>pax-logging-log4j2</artifactId>
113 <version>${patch.pax.logging.version}</version>
114 <outputDirectory>${project.build.directory}/docker-stage/system/org/ops4j/pax/logging/pax-logging-log4j2/${patch.pax.logging.version}</outputDirectory>
115 <destFileName>pax-logging-log4j2-${patch.pax.logging.version}.jar</destFileName>
116 <excludes>*</excludes>
119 <groupId>org.ops4j.pax.logging</groupId>
120 <artifactId>pax-logging-logback</artifactId>
121 <version>${patch.pax.logging.version}</version>
122 <outputDirectory>${project.build.directory}/docker-stage/system/org/ops4j/pax/logging/pax-logging-logback/${patch.pax.logging.version}</outputDirectory>
123 <destFileName>pax-logging-logback-${patch.pax.logging.version}.jar</destFileName>
124 <excludes>*</excludes>
127 <groupId>org.ops4j.pax.logging</groupId>
128 <artifactId>pax-logging-api</artifactId>
129 <version>${patch.pax.logging.version}</version>
130 <outputDirectory>${project.build.directory}/docker-stage/system/org/ops4j/pax/logging/pax-logging-api/${patch.pax.logging.version}</outputDirectory>
131 <destFileName>pax-logging-api-${patch.pax.logging.version}.jar</destFileName>
132 <excludes>*</excludes>
135 <overWriteReleases>false</overWriteReleases>
136 <overWriteSnapshots>true</overWriteSnapshots>
137 <overWriteIfNewer>true</overWriteIfNewer>
144 <artifactId>maven-resources-plugin</artifactId>
145 <version>2.6</version>
148 <id>copy-dockerfile</id>
150 <goal>copy-resources</goal>
151 </goals><!-- here the phase you need -->
152 <phase>validate</phase>
154 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
157 <directory>src/main/docker</directory>
159 <include>Dockerfile</include>
161 <filtering>true</filtering>
164 <directory>src/main/odlscripts</directory>
168 <filtering>false</filtering>
174 <id>copy-karaf-framework-features</id>
176 <goal>copy-resources</goal>
177 </goals><!-- here the phase you need -->
178 <phase>validate</phase>
180 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
183 <directory>src/main/resources</directory>
185 <include>framework-${odl.karaf.framework.version}-features.xml</include>
186 <include>startup.properties</include>
188 <filtering>true</filtering>
205 <groupId>io.fabric8</groupId>
206 <artifactId>docker-maven-plugin</artifactId>
207 <version>0.34.0</version>
208 <inherited>false</inherited>
212 <name>${image.name}</name>
214 <cleanup>try</cleanup>
215 <noCache>true</noCache>
216 <contextDir>${basedir}/target/docker-stage</contextDir>
217 <dockerFile>Dockerfile</dockerFile>
219 <tag>${project.docker.latestminortag.version}</tag>
220 <tag>${project.docker.latestfulltag.version}</tag>
221 <tag>${project.docker.latesttagtimestamp.version}</tag>
226 <verbose>${docker.verbose}</verbose>
227 <skipPush>${docker.skip.push}</skipPush>
231 <id>build-push-images</id>