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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>spring-boot-starter-parent</artifactId>
9 <version>2.0.0-SNAPSHOT</version>
13 <groupId>org.onap.ccsdk.distribution</groupId>
14 <artifactId>distribution-sliboot</artifactId>
15 <version>1.0.0-SNAPSHOT</version>
16 <packaging>pom</packaging>
18 <name>ccsdk-distribution :: sliboot</name>
19 <description>Creates Springboot-based Docker container</description>
25 <base.image.name>onap/ccsdk-alpine-image</base.image.name>
26 <image.name>onap/ccsdk-sliboot-alpine-image</image.name>
27 <ccsdk.project.version>${project.version}</ccsdk.project.version>
28 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
29 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
30 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
31 <docker.push.phase>deploy</docker.push.phase>
32 <docker.verbose>true</docker.verbose>
34 <ccsdk.sli.core.version>1.0.0-SNAPSHOT</ccsdk.sli.core.version>
35 <ccsdk.sliboot.jar>sliapi-springboot-${ccsdk.sli.core.version}.jar</ccsdk.sliboot.jar>
40 <groupId>org.onap.ccsdk.sli.core</groupId>
41 <artifactId>sliapi-springboot</artifactId>
42 <version>${ccsdk.sli.core.version}</version>
50 <groupId>org.codehaus.groovy.maven</groupId>
51 <artifactId>gmaven-plugin</artifactId>
54 <phase>validate</phase>
59 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
67 <artifactId>maven-resources-plugin</artifactId>
68 <version>2.6</version>
71 <id>copy-dockerfile</id>
73 <goal>copy-resources</goal>
74 </goals><!-- here the phase you need -->
75 <phase>validate</phase>
77 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
80 <directory>src/main/docker</directory>
82 <include>Dockerfile</include>
84 <filtering>true</filtering>
92 <goal>copy-resources</goal>
93 </goals><!-- here the phase you need -->
94 <phase>validate</phase>
96 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
99 <directory>src/main/resources</directory>
101 <include>*.properties</include>
102 <include>*.props</include>
103 <include>*.sql</include>
105 <filtering>true</filtering>
108 <directory>src/main/resources</directory>
110 <include>*.keyfile</include>
111 <include>*.jks</include>
112 <include>*.p12</include>
114 <filtering>false</filtering>
122 <goal>copy-resources</goal>
123 </goals><!-- here the phase you need -->
124 <phase>validate</phase>
126 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
129 <directory>src/main/resources</directory>
131 <include>*.sh</include>
133 <filtering>true</filtering>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-dependency-plugin</artifactId>
143 <version>3.0.2</version>
146 <id>copy-dependencies</id>
148 <goal>copy-dependencies</goal>
150 <phase>prepare-package</phase>
152 <excludeTransitive>true</excludeTransitive>
153 <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
154 <overWriteReleases>false</overWriteReleases>
155 <overWriteSnapshots>true</overWriteSnapshots>
156 <overWriteIfNewer>true</overWriteIfNewer>
157 <useRepositoryLayout>false</useRepositoryLayout>
158 <addParentPoms>false</addParentPoms>
159 <copyPom>false</copyPom>
164 <phase>generate-sources</phase>
169 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
172 <groupId>${project.groupId}</groupId>
173 <artifactId>platform-logic-installer</artifactId>
174 <version>${project.version}</version>
191 <groupId>io.fabric8</groupId>
192 <artifactId>docker-maven-plugin</artifactId>
193 <version>0.28.0</version>
194 <inherited>false</inherited>
198 <name>${image.name}</name>
200 <cleanup>try</cleanup>
201 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
202 <dockerFile>Dockerfile</dockerFile>
204 <tag>${project.docker.latestminortag.version}</tag>
205 <tag>${project.docker.latestfulltag.version}</tag>
206 <tag>${project.docker.latesttagtimestamp.version}</tag>
214 <id>generate-images</id>
215 <phase>package</phase>
223 <phase>${docker.push.phase}</phase>