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">
4 <groupId>org.onap.msb.apigateway.distributions</groupId>
5 <artifactId>distributions-parent</artifactId>
6 <version>1.2.5-SNAPSHOT</version>
8 <modelVersion>4.0.0</modelVersion>
9 <groupId>org.onap.msb.apigateway.distributions</groupId>
10 <artifactId>msb-apigateway</artifactId>
11 <version>1.2.5-SNAPSHOT</version>
12 <name>onap/msb/apigateway/distributions/msb-apigateway</name>
13 <packaging>pom</packaging>
16 <packageid>msb-apigateway</packageid>
17 <version.output>${project.basedir}/target/version</version.output>
18 <docker.image.name>onap/msb/msb_apigateway</docker.image.name>
19 <docker.tag>${project.version}-${timestamp}</docker.tag>
20 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
27 <activeByDefault>true</activeByDefault>
31 <groupId>org.onap.msb.apigateway.apiroute</groupId>
32 <artifactId>apiroute-standalone</artifactId>
34 <version>${project.version}</version>
35 <optional>true</optional>
40 <groupId>org.onap.msb.apigateway</groupId>
41 <artifactId>redis-ext</artifactId>
43 <classifier>${classifier.linux64}</classifier>
44 <version>${project.version}</version>
45 <optional>true</optional>
49 <groupId>org.onap.msb.apigateway</groupId>
50 <artifactId>openresty-ext</artifactId>
52 <classifier>${classifier.linux64}</classifier>
53 <version>${project.version}</version>
54 <optional>true</optional>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-dependency-plugin</artifactId>
65 <id>unpacktolinux64</id>
69 <phase>prepare-package</phase>
73 <groupId>org.onap.msb.apigateway.apiroute</groupId>
74 <artifactId>apiroute-standalone</artifactId>
78 <groupId>org.onap.msb.apigateway</groupId>
79 <artifactId>redis-ext</artifactId>
81 <classifier>${classifier.linux64}</classifier>
84 <groupId>org.onap.msb.apigateway</groupId>
85 <artifactId>openresty-ext</artifactId>
87 <classifier>${classifier.linux64}</classifier>
90 <excludes>**/*.bat,**/*.cmd,**/*.exe</excludes>
91 <outputDirectory>${linux64outputdir}</outputDirectory>
92 <overWriteReleases>false</overWriteReleases>
93 <overWriteSnapshots>true</overWriteSnapshots>
94 <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
101 <artifactId>maven-resources-plugin</artifactId>
104 <id>copy-msb-resources-linux</id>
105 <phase>prepare-package</phase>
107 <goal>copy-resources</goal>
110 <outputDirectory>${linux64outputdir}</outputDirectory>
111 <includeEmptyDirs>true</includeEmptyDirs>
114 <directory>src/assembly/resources/</directory>
115 <filtering>false</filtering>
117 <include>**/*</include>
120 <exclude>**/*.bat</exclude>
124 <overwrite>true</overwrite>
128 <id>copy-resources-dockerfile</id>
129 <phase>process-resources</phase>
131 <goal>copy-resources</goal>
134 <outputDirectory>${version.output}</outputDirectory>
135 <includeEmptyDirs>true</includeEmptyDirs>
138 <directory>${dockerFileDir}</directory>
139 <filtering>false</filtering>
141 <include>**/*</include>
145 <overwrite>true</overwrite>
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-antrun-plugin</artifactId>
156 <id>distribution</id>
157 <phase>package</phase>
162 <target name="distribution">
165 <format property="last.updated" pattern="yyyy-MM-dd HH:mm:ss"/>
167 <echo file="${linux64outputdir}/msb.version.properties" message="build.time=${last.updated}${line.separator}build.version=${project.version}"/>
168 <tar destfile="${version.output}/${packageid}-${project.version}-${classifier.linux64}.tar.gz" longfile="posix" compression="gzip">
169 <tarfileset dir="${linux64outputdir}" prefix="${packageid}" filemode="0644" dirmode="0755">
170 <exclude name="**/*.sh"/>
171 <exclude name="openresty/nginx/sbin/nginx"/>
172 <exclude name="redis/redis-*"/>
174 <tarfileset dir="${linux64outputdir}" prefix="${packageid}" filemode="0755" dirmode="0755">
175 <include name="**/*.sh"/>
176 <include name="openresty/nginx/sbin/nginx"/>
177 <include name="redis/redis-*"/>
193 <groupId>io.fabric8</groupId>
194 <artifactId>docker-maven-plugin</artifactId>
195 <version>0.19.1</version>
198 <groupId>com.github.jnr</groupId>
199 <artifactId>jnr-unixsocket</artifactId>
200 <version>0.13</version>
204 <verbose>true</verbose>
205 <apiVersion>1.23</apiVersion>
206 <registry>nexus3.onap.org:10003</registry>
209 <name>${docker.image.name}</name>
210 <alias>docker_msb_apigateway</alias>
212 <cleanup>true</cleanup>
214 <tag>${docker.tag}</tag>
215 <tag>${docker.latest.tag}</tag>
217 <dockerFileDir>${version.output}</dockerFileDir>
219 <descriptorRef>artifact</descriptorRef>
227 <id>clean-images</id>
228 <phase>pre-clean</phase>
233 <removeAll>true</removeAll>
234 <image>docker_msb_apigateway</image>
238 <id>generate-images</id>
239 <phase>package</phase>
246 <phase>deploy</phase>
251 <image>${docker.image.name}</image>