blob: b3fdd3caae3fc1e4822287e43f79db7182caa0da [file] [log] [blame]
eronkeo1841cb52018-08-12 15:46:43 +01001<!--
2 ============LICENSE_START==================================================
3 * org.onap.dmaap
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
Piotr Darosz5a410372018-10-03 14:31:25 +02006 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
Alexander Mazuruk3ae776d2021-02-17 21:36:03 +01007 * Modifications Copyright (C) 2021 Samsung Electronics. All rights reserved.
eronkeo1841cb52018-08-12 15:46:43 +01008 * ===========================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END====================================================
21 *
22 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 *
24-->
25<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/maven-v4_0_0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.dmaap.datarouter</groupId>
29 <artifactId>parent</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +000030 <version>${revision}</version>
eronkeo1841cb52018-08-12 15:46:43 +010031 <relativePath>../pom.xml</relativePath>
32 </parent>
33 <artifactId>datarouter-node</artifactId>
34 <packaging>jar</packaging>
efiacor1c11ab82019-04-09 13:52:17 +000035 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
eronkeo1841cb52018-08-12 15:46:43 +010036 <properties>
eronkeo1841cb52018-08-12 15:46:43 +010037 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
efiacor1c11ab82019-04-09 13:52:17 +000038 <docker.location>${basedir}/target/${project.artifactId}</docker.location>
39 <datarouter.node.image.name>${docker.image.root}${project.artifactId}</datarouter.node.image.name>
efiacorf20778f2019-07-23 16:22:03 +000040 <sonar.exclusions>src/main/java/org/onap/dmaap/datarouter/node/NodeMain.java</sonar.exclusions>
efiacor1c11ab82019-04-09 13:52:17 +000041 <sonar.language>java</sonar.language>
42 <sonar.skip>false</sonar.skip>
eronkeo1841cb52018-08-12 15:46:43 +010043 </properties>
44 <dependencies>
45 <dependency>
efiacor1ccd9c32019-10-08 16:24:28 +010046 <groupId>org.apache.commons</groupId>
47 <artifactId>commons-lang3</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +000048 </dependency>
49 <dependency>
50 <groupId>org.slf4j</groupId>
51 <artifactId>slf4j-api</artifactId>
edepaul555b7fc2018-09-11 08:07:16 +010052 </dependency>
53 <dependency>
edepaul12c71a52018-09-07 16:27:01 +010054 <groupId>commons-codec</groupId>
55 <artifactId>commons-codec</artifactId>
edepaul12c71a52018-09-07 16:27:01 +010056 </dependency>
57 <dependency>
efiacorc466fbd2019-06-25 11:01:10 +000058 <groupId>commons-io</groupId>
59 <artifactId>commons-io</artifactId>
60 </dependency>
61 <dependency>
eronkeo1841cb52018-08-12 15:46:43 +010062 <groupId>org.json</groupId>
63 <artifactId>json</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010064 </dependency>
65 <dependency>
66 <groupId>com.att.eelf</groupId>
67 <artifactId>eelf-core</artifactId>
efiacor8552e042020-04-04 17:51:53 +010068 <exclusions>
69 <exclusion>
70 <artifactId>powermock-api-mockito</artifactId>
71 <groupId>org.powermock</groupId>
72 </exclusion>
73 </exclusions>
EmmettCoxb60213d2019-04-08 10:34:31 +000074 </dependency>
75 <dependency>
eronkeo1841cb52018-08-12 15:46:43 +010076 <groupId>ch.qos.logback</groupId>
77 <artifactId>logback-classic</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010078 </dependency>
79 <dependency>
80 <groupId>ch.qos.logback</groupId>
81 <artifactId>logback-core</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +000082 </dependency>
83 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +000084 <groupId>javax.servlet</groupId>
85 <artifactId>javax.servlet-api</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010086 </dependency>
87 <dependency>
88 <groupId>org.eclipse.jetty</groupId>
89 <artifactId>jetty-server</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010090 </dependency>
91 <dependency>
92 <groupId>org.eclipse.jetty</groupId>
93 <artifactId>jetty-util</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010094 </dependency>
95 <dependency>
96 <groupId>org.eclipse.jetty</groupId>
97 <artifactId>jetty-servlet</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010098 </dependency>
99 <dependency>
100 <groupId>org.eclipse.jetty</groupId>
101 <artifactId>jetty-http</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100102 </dependency>
103 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000104 <groupId>org.onap.aaf.authz</groupId>
105 <artifactId>aaf-cadi-core</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100106 </dependency>
107 <dependency>
efiacor1ccd9c32019-10-08 16:24:28 +0100108 <groupId>com.intellij</groupId>
109 <artifactId>annotations</artifactId>
110 </dependency>
111 <dependency>
112 <groupId>org.hamcrest</groupId>
efiacor8552e042020-04-04 17:51:53 +0100113 <artifactId>hamcrest-all</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100114 <scope>test</scope>
115 </dependency>
116 <dependency>
117 <groupId>junit</groupId>
118 <artifactId>junit</artifactId>
119 <scope>test</scope>
120 </dependency>
121 <dependency>
eronkeo1841cb52018-08-12 15:46:43 +0100122 <groupId>org.sonatype.http-testing-harness</groupId>
123 <artifactId>junit-runner</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100124 <scope>test</scope>
efiacor8552e042020-04-04 17:51:53 +0100125 <exclusions>
126 <exclusion>
127 <artifactId>powermock-api-mockito</artifactId>
128 <groupId>org.powermock</groupId>
129 </exclusion>
130 <exclusion>
131 <artifactId>powermock-reflect</artifactId>
132 <groupId>org.powermock</groupId>
133 </exclusion>
134 <exclusion>
135 <artifactId>jetty-security</artifactId>
136 <groupId>org.eclipse.jetty</groupId>
137 </exclusion>
138 <exclusion>
139 <artifactId>jsr305</artifactId>
140 <groupId>com.google.code.findbugs</groupId>
141 </exclusion>
142 </exclusions>
eronkeo1841cb52018-08-12 15:46:43 +0100143 </dependency>
144 <dependency>
econwar81734bd2018-08-23 13:46:30 +0000145 <groupId>org.mockito</groupId>
146 <artifactId>mockito-core</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100147 <scope>test</scope>
econwar81734bd2018-08-23 13:46:30 +0000148 </dependency>
149 <dependency>
150 <groupId>org.powermock</groupId>
151 <artifactId>powermock-module-junit4</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100152 <scope>test</scope>
econwar81734bd2018-08-23 13:46:30 +0000153 </dependency>
154 <dependency>
155 <groupId>org.powermock</groupId>
efiacor8552e042020-04-04 17:51:53 +0100156 <artifactId>powermock-api-mockito2</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100157 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000158 </dependency>
159 <dependency>
160 <groupId>org.powermock</groupId>
161 <artifactId>powermock-api-support</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100162 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000163 </dependency>
164 <dependency>
165 <groupId>org.powermock</groupId>
166 <artifactId>powermock-core</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100167 <scope>test</scope>
efiacor5775de72019-03-26 14:29:01 +0000168 </dependency>
econwar5a55b792019-06-24 11:03:58 +0000169 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100170 <groupId>org.powermock</groupId>
171 <artifactId>powermock-module-junit4-rule</artifactId>
172 </dependency>
173 <dependency>
174 <groupId>net.bytebuddy</groupId>
175 <artifactId>byte-buddy</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>net.bytebuddy</groupId>
179 <artifactId>byte-buddy-agent</artifactId>
180 </dependency>
181 <dependency>
182 <groupId>org.objenesis</groupId>
183 <artifactId>objenesis</artifactId>
184 </dependency>
185 <dependency>
186 <groupId>org.javassist</groupId>
187 <artifactId>javassist</artifactId>
188 </dependency>
189 <dependency>
econwar5a55b792019-06-24 11:03:58 +0000190 <groupId>org.awaitility</groupId>
191 <artifactId>awaitility</artifactId>
192 <version>3.1.6</version>
efiacor1ccd9c32019-10-08 16:24:28 +0100193 <scope>test</scope>
econwar5a55b792019-06-24 11:03:58 +0000194 </dependency>
eronkeo1841cb52018-08-12 15:46:43 +0100195 </dependencies>
196 <profiles>
197 <profile>
198 <id>docker</id>
199 <properties>
eronkeo1841cb52018-08-12 15:46:43 +0100200 <skipTests>true</skipTests>
201 </properties>
202 <build>
203 <plugins>
204 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000205 <groupId>org.codehaus.gmaven</groupId>
206 <artifactId>gmaven-plugin</artifactId>
sandovalfrefad4612019-03-04 09:31:59 -0500207 </plugin>
208 <plugin>
209 <groupId>io.fabric8</groupId>
eronkeo1841cb52018-08-12 15:46:43 +0100210 <artifactId>docker-maven-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100211 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500212 <images>
213 <image>
214 <name>${datarouter.node.image.name}</name>
215 <build>
216 <cleanup>try</cleanup>
efiacord20d5f52020-02-27 16:46:20 +0000217 <noCache>true</noCache>
218 <optimise>true</optimise>
219 <contextDir>${basedir}/target/docker-stage</contextDir>
sandovalfrefad4612019-03-04 09:31:59 -0500220 <dockerFile>Dockerfile</dockerFile>
221 <tags>
222 <tag>${dockertag1}</tag>
223 <tag>${dockertag2}</tag>
224 </tags>
225 </build>
226 </image>
227 </images>
eronkeo1841cb52018-08-12 15:46:43 +0100228 </configuration>
efiacor1c11ab82019-04-09 13:52:17 +0000229 <executions>
230 <execution>
231 <id>generate-images</id>
232 <phase>install</phase>
233 <goals>
234 <goal>build</goal>
235 </goals>
236 </execution>
237 <execution>
238 <id>push-images</id>
239 <phase>deploy</phase>
240 <goals>
241 <goal>push</goal>
242 </goals>
243 </execution>
244 </executions>
eronkeo1841cb52018-08-12 15:46:43 +0100245 </plugin>
246 </plugins>
247 </build>
248 </profile>
249 </profiles>
eronkeo1841cb52018-08-12 15:46:43 +0100250 <build>
251 <finalName>datarouter-node</finalName>
252 <resources>
253 <resource>
254 <directory>src/main/resources</directory>
255 <filtering>true</filtering>
256 <includes>
257 <include>**/*.properties</include>
258 </includes>
259 </resource>
260 <resource>
261 <directory>src/main/resources</directory>
262 <filtering>true</filtering>
263 <includes>
efiacor1ccd9c32019-10-08 16:24:28 +0100264 <include>**/logback.xml</include>
eronkeo1841cb52018-08-12 15:46:43 +0100265 </includes>
266 </resource>
eronkeo1841cb52018-08-12 15:46:43 +0100267 </resources>
268 <plugins>
269 <plugin>
270 <groupId>org.apache.maven.plugins</groupId>
271 <artifactId>maven-compiler-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100272 </plugin>
273 <plugin>
274 <artifactId>maven-assembly-plugin</artifactId>
275 <version>2.4</version>
276 <configuration>
277 <descriptorRefs>
278 <descriptorRef>jar-with-dependencies</descriptorRef>
279 </descriptorRefs>
sandovalfrefad4612019-03-04 09:31:59 -0500280 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
eronkeo1841cb52018-08-12 15:46:43 +0100281 <archive>
282 <manifest>
283 <addClasspath>true</addClasspath>
efiacoradb2ad22019-10-23 15:31:43 +0100284 <mainClass>org.onap.dmaap.datarouter.node.NodeRunner</mainClass>
eronkeo1841cb52018-08-12 15:46:43 +0100285 </manifest>
286 </archive>
287 </configuration>
288 <executions>
289 <execution>
290 <id>make-assembly</id>
291 <!-- this is used for inheritance merges -->
292 <phase>package</phase>
293 <!-- bind to the packaging phase -->
294 <goals>
295 <goal>single</goal>
296 </goals>
297 </execution>
298 </executions>
299 </plugin>
300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-resources-plugin</artifactId>
303 <version>2.7</version>
304 <executions>
305 <execution>
306 <id>copy-docker-file</id>
sandovalfrefad4612019-03-04 09:31:59 -0500307 <phase>validate</phase>
eronkeo1841cb52018-08-12 15:46:43 +0100308 <goals>
309 <goal>copy-resources</goal>
310 </goals>
311 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500312 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
eronkeo1841cb52018-08-12 15:46:43 +0100313 <overwrite>true</overwrite>
314 <resources>
315 <resource>
316 <directory>${basedir}/src/main/resources/docker</directory>
317 <filtering>true</filtering>
318 <includes>
efiacor1ccd9c32019-10-08 16:24:28 +0100319 <include>Dockerfile</include>
eronkeo1841cb52018-08-12 15:46:43 +0100320 </includes>
321 </resource>
322 </resources>
323 </configuration>
324 </execution>
325 <execution>
sandovalfrefad4612019-03-04 09:31:59 -0500326 <id>copy-startup-script</id>
eronkeo1841cb52018-08-12 15:46:43 +0100327 <phase>validate</phase>
328 <goals>
329 <goal>copy-resources</goal>
330 </goals>
331 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500332 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
333 <overwrite>true</overwrite>
334 <resources>
335 <resource>
336 <directory>${basedir}/src/main/resources/docker</directory>
337 <filtering>true</filtering>
338 <includes>
339 <include>startup.sh</include>
340 </includes>
341 </resource>
342 </resources>
343 </configuration>
344 </execution>
345 <execution>
efiacor1ccd9c32019-10-08 16:24:28 +0100346 <id>copy-resources-etc</id>
sandovalfrefad4612019-03-04 09:31:59 -0500347 <phase>validate</phase>
348 <goals>
349 <goal>copy-resources</goal>
350 </goals>
351 <configuration>
352 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
eronkeo1841cb52018-08-12 15:46:43 +0100353 <resources>
354 <resource>
355 <directory>${basedir}/src/main/resources</directory>
356 <includes>
357 <include>misc/**</include>
358 <include>**/**</include>
359 </includes>
efiacor1ccd9c32019-10-08 16:24:28 +0100360 <excludes>
361 <exclude>aaf/**</exclude>
362 <exclude>docker/**</exclude>
363 </excludes>
eronkeo1841cb52018-08-12 15:46:43 +0100364 </resource>
365 </resources>
366 </configuration>
367 </execution>
368 <execution>
efiacor1ccd9c32019-10-08 16:24:28 +0100369 <id>copy-aaf-props</id>
eronkeo1841cb52018-08-12 15:46:43 +0100370 <phase>validate</phase>
371 <goals>
372 <goal>copy-resources</goal>
373 </goals>
374 <configuration>
efiacor1ccd9c32019-10-08 16:24:28 +0100375 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
sandovalfrefad4612019-03-04 09:31:59 -0500376 <resources>
377 <resource>
efiacor1ccd9c32019-10-08 16:24:28 +0100378 <directory>${basedir}/src/main/resources/aaf</directory>
sandovalfrefad4612019-03-04 09:31:59 -0500379 <includes>
sandovalfrefad4612019-03-04 09:31:59 -0500380 <include>**/**</include>
381 </includes>
382 </resource>
383 </resources>
384 </configuration>
385 </execution>
eronkeo1841cb52018-08-12 15:46:43 +0100386 </executions>
387 </plugin>
388 <plugin>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-javadoc-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100391 </plugin>
392 <plugin>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-source-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100395 </plugin>
396 <plugin>
397 <groupId>org.codehaus.mojo</groupId>
398 <artifactId>cobertura-maven-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100399 </plugin>
400 <plugin>
eronkeo1841cb52018-08-12 15:46:43 +0100401 <groupId>org.jacoco</groupId>
402 <artifactId>jacoco-maven-plugin</artifactId>
efiacorf20778f2019-07-23 16:22:03 +0000403 <configuration>
404 <excludes>
efiacoradb2ad22019-10-23 15:31:43 +0100405 <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeRunner.java</exclude>
efiacorf20778f2019-07-23 16:22:03 +0000406 </excludes>
407 </configuration>
efiacor1c11ab82019-04-09 13:52:17 +0000408 </plugin>
409 <plugin>
410 <groupId>org.codehaus.mojo</groupId>
411 <artifactId>properties-maven-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100412 </plugin>
413 </plugins>
414 </build>
415</project>