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 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.logging-analytics.pomba</groupId>
7 <artifactId>pomba-context-aggregator</artifactId>
8 <version>1.3.1-SNAPSHOT</version>
11 <groupId>org.onap.oparent</groupId>
12 <artifactId>oparent</artifactId>
13 <version>1.2.0</version>
18 <java.version>1.8</java.version>
19 <dmaap.client.version>1.1.5</dmaap.client.version>
20 <aai.rest.client.version>1.2.1</aai.rest.client.version>
22 <docker.tag>${project.version}-${timestamp}</docker.tag>
23 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
26 <dependencyManagement>
29 <groupId>org.springframework.boot</groupId>
30 <artifactId>spring-boot-dependencies</artifactId>
31 <version>1.5.12.RELEASE</version>
36 </dependencyManagement>
40 <groupId>org.eclipse.jetty</groupId>
41 <artifactId>jetty-security</artifactId>
44 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
45 <artifactId>dmaapClient</artifactId>
46 <version>${dmaap.client.version}</version>
49 <groupId>org.onap.aai</groupId>
50 <artifactId>rest-client</artifactId>
51 <version>${aai.rest.client.version}</version>
54 <groupId>org.apache.logging.log4j</groupId>
55 <artifactId>log4j-slf4j-impl</artifactId>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-web</artifactId>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-actuator</artifactId>
68 <groupId>org.onap.logging-analytics.pomba</groupId>
69 <artifactId>pomba-audit-common</artifactId>
70 <version>1.3.1-SNAPSHOT</version>
73 <groupId>com.google.code.gson</groupId>
74 <artifactId>gson</artifactId>
76 <!-- logging dependencies -->
78 <groupId>org.slf4j</groupId>
79 <artifactId>slf4j-api</artifactId>
82 <groupId>org.onap.logging-analytics</groupId>
83 <artifactId>logging-slf4j</artifactId>
84 <version>1.2.2-SNAPSHOT</version>
87 <groupId>com.att.eelf</groupId>
88 <artifactId>eelf-core</artifactId>
93 <!-- JUnit dependencies -->
95 <groupId>junit</groupId>
96 <artifactId>junit</artifactId>
100 <groupId>org.springframework</groupId>
101 <artifactId>spring-test</artifactId>
102 <version>4.3.6.RELEASE</version>
106 <groupId>org.springframework.boot</groupId>
107 <artifactId>spring-boot-test</artifactId>
108 <version>1.5.1.RELEASE</version>
112 <groupId>org.mockito</groupId>
113 <artifactId>mockito-all</artifactId>
114 <version>1.10.19</version>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-configuration-processor</artifactId>
120 <optional>true</optional>
126 <finalName>${project.artifactId}</finalName>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-maven-plugin</artifactId>
134 <goal>repackage</goal>
143 <targetPath>config</targetPath>
144 <directory>config</directory>
145 <filtering>true</filtering>
147 <include>**/*</include>
159 <groupId>io.fabric8</groupId>
160 <artifactId>docker-maven-plugin</artifactId>
161 <version>0.19.1</version>
163 <verbose>true</verbose>
164 <apiVersion>1.23</apiVersion>
167 <name>onap/${project.artifactId}</name>
168 <alias>${project.artifactId}</alias>
170 <cleanup>try</cleanup>
171 <dockerFileDir>${project.basedir}/target/docker-stage</dockerFileDir>
173 <tag>${docker.snapshot.tag}</tag>
174 <tag>${docker.latest.tag}</tag>
182 <id>generate-images</id>
183 <phase>generate-sources</phase>
190 <phase>deploy</phase>
199 <artifactId>maven-resources-plugin</artifactId>
200 <version>2.6</version>
203 <id>copy-dockerfile</id>
205 <goal>copy-resources</goal>
206 </goals><!-- here the phase you need -->
207 <phase>package</phase>
209 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
212 <directory>src/main/docker</directory>
214 <include>Dockerfile</include>
216 <filtering>true</filtering>
222 <id>copy-properties</id>
224 <goal>copy-resources</goal>
226 <phase>package</phase>
228 <outputDirectory>${project.basedir}/target/docker-stage/config</outputDirectory>
231 <directory>config</directory>
233 <include>*.properties</include>
234 <include>builders/*.properties</include>
235 <include>*.xml</include>
237 <filtering>false</filtering>
245 <goal>copy-resources</goal>
247 <phase>package</phase>
249 <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory>
252 <directory>src/main/docker</directory>
254 <include>*.sh</include>
256 <filtering>false</filtering>
264 <goal>copy-resources</goal>
266 <phase>package</phase>
268 <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory>
271 <directory>target</directory>
273 <include>*.jar</include>
275 <filtering>false</filtering>