1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 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">
5 <modelVersion>4.0.0</modelVersion>
7 <groupId>org.onap.logging-analytics.pomba</groupId>
8 <artifactId>pomba-context-aggregator</artifactId>
9 <version>1.3.0-SNAPSHOT</version>
12 <groupId>org.onap.oparent</groupId>
13 <artifactId>oparent</artifactId>
14 <version>1.1.1</version>
19 <java.version>1.8</java.version>
20 <dmaap.client.version>1.1.5</dmaap.client.version>
21 <aai.rest.client.version>1.2.1</aai.rest.client.version>
23 <docker.tag>${project.version}-${timestamp}</docker.tag>
24 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
25 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
26 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
29 <dependencyManagement>
32 <groupId>org.springframework.boot</groupId>
33 <artifactId>spring-boot-dependencies</artifactId>
34 <version>1.5.12.RELEASE</version>
39 </dependencyManagement>
43 <groupId>org.eclipse.jetty</groupId>
44 <artifactId>jetty-security</artifactId>
47 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
48 <artifactId>dmaapClient</artifactId>
49 <version>${dmaap.client.version}</version>
52 <groupId>org.onap.aai</groupId>
53 <artifactId>rest-client</artifactId>
54 <version>${aai.rest.client.version}</version>
57 <groupId>org.apache.logging.log4j</groupId>
58 <artifactId>log4j-slf4j-impl</artifactId>
63 <groupId>org.springframework.boot</groupId>
64 <artifactId>spring-boot-starter-web</artifactId>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-starter-actuator</artifactId>
71 <groupId>org.onap.logging-analytics.pomba</groupId>
72 <artifactId>pomba-audit-common</artifactId>
73 <version>1.3.0-SNAPSHOT</version>
76 <groupId>com.google.code.gson</groupId>
77 <artifactId>gson</artifactId>
79 <!-- logging dependencies -->
81 <groupId>org.slf4j</groupId>
82 <artifactId>slf4j-api</artifactId>
85 <groupId>org.onap.logging-analytics</groupId>
86 <artifactId>logging-slf4j</artifactId>
87 <version>1.2.2-SNAPSHOT</version>
90 <groupId>com.att.eelf</groupId>
91 <artifactId>eelf-core</artifactId>
96 <!-- JUnit dependencies -->
98 <groupId>junit</groupId>
99 <artifactId>junit</artifactId>
103 <groupId>org.springframework</groupId>
104 <artifactId>spring-test</artifactId>
105 <version>4.3.6.RELEASE</version>
109 <groupId>org.springframework.boot</groupId>
110 <artifactId>spring-boot-test</artifactId>
111 <version>1.5.1.RELEASE</version>
115 <groupId>org.mockito</groupId>
116 <artifactId>mockito-all</artifactId>
117 <version>1.10.19</version>
121 <groupId>org.springframework.boot</groupId>
122 <artifactId>spring-boot-configuration-processor</artifactId>
123 <optional>true</optional>
129 <finalName>${project.artifactId}</finalName>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-resources-plugin</artifactId>
136 <id>copy-docker-file</id>
137 <phase>package</phase>
139 <goal>copy-resources</goal>
142 <outputDirectory>target</outputDirectory>
143 <overwrite>true</overwrite>
146 <directory>${basedir}/src/main/docker</directory>
147 <filtering>true</filtering>
149 <include>**/*</include>
158 <groupId>com.spotify</groupId>
159 <artifactId>docker-maven-plugin</artifactId>
160 <version>0.4.11</version>
163 <groupId>com.github.jnr</groupId>
164 <artifactId>jnr-unixsocket</artifactId>
165 <version>0.13</version>
169 <verbose>true</verbose>
170 <serverId>docker-hub</serverId>
171 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
172 <dockerDirectory>${docker.location}</dockerDirectory>
174 <imageTag>latest</imageTag>
176 <forceTags>true</forceTags>
180 <groupId>org.springframework.boot</groupId>
181 <artifactId>spring-boot-maven-plugin</artifactId>
185 <goal>repackage</goal>
194 <targetPath>config</targetPath>
195 <directory>config</directory>
196 <filtering>true</filtering>
198 <include>**/*</include>
210 <groupId>io.fabric8</groupId>
211 <artifactId>docker-maven-plugin</artifactId>
212 <version>0.19.1</version>
214 <verbose>true</verbose>
215 <apiVersion>1.23</apiVersion>
216 <!-- <pullRegistry>${docker.pull.registry}</pullRegistry>
217 <pushRegistry>${docker.push.registry}</pushRegistry>
218 <dockerHost>${docker.pull.registry}</dockerHost> -->
221 <name>onap/${project.artifactId}</name>
222 <alias>${project.artifactId}</alias>
224 <cleanup>try</cleanup>
225 <dockerFileDir>${project.basedir}/target/docker-stage</dockerFileDir>
226 <dockerFile>${project.basedir}/target/docker-stage/Dockerfile</dockerFile>
228 <tag>${docker.snapshot.tag}</tag>
229 <tag>${docker.latest.tag}</tag>
231 <!-- <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir> -->
238 <id>clean-images</id>
239 <phase>pre-clean</phase>
244 <removeAll>true</removeAll>
249 <id>generate-images</id>
250 <!-- <phase>package</phase> -->
251 <phase>generate-sources</phase>
258 <phase>deploy</phase>
264 <image>onap/vvp/cms</image>
270 <artifactId>maven-resources-plugin</artifactId>
271 <version>2.6</version>
274 <id>copy-dockerfile</id>
276 <goal>copy-resources</goal>
277 </goals><!-- here the phase you need -->
278 <phase>validate</phase>
280 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
283 <directory>src/main/docker</directory>
285 <include>Dockerfile</include>
287 <filtering>true</filtering>
293 <id>copy-properties</id>
295 <goal>copy-resources</goal>
297 <phase>validate</phase>
299 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
302 <directory>../src/main/properties</directory>
304 <include>*.properties</include>
305 <include>*.properties.sdnctldb01</include>
307 <filtering>false</filtering>