blob: d9650c23aa04ea3abe5208ca81a8ab37f2036b99 [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.
eronkeo1841cb52018-08-12 15:46:43 +01007 * ===========================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END====================================================
20 *
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 *
23-->
24<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">
25 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.dmaap.datarouter</groupId>
28 <artifactId>parent</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +000029 <version>${revision}</version>
eronkeo1841cb52018-08-12 15:46:43 +010030 <relativePath>../pom.xml</relativePath>
31 </parent>
32 <artifactId>datarouter-node</artifactId>
33 <packaging>jar</packaging>
efiacor1c11ab82019-04-09 13:52:17 +000034 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
eronkeo1841cb52018-08-12 15:46:43 +010035 <properties>
eronkeo1841cb52018-08-12 15:46:43 +010036 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
efiacor1c11ab82019-04-09 13:52:17 +000037 <docker.location>${basedir}/target/${project.artifactId}</docker.location>
38 <datarouter.node.image.name>${docker.image.root}${project.artifactId}</datarouter.node.image.name>
efiacorf20778f2019-07-23 16:22:03 +000039 <sonar.exclusions>src/main/java/org/onap/dmaap/datarouter/node/NodeMain.java</sonar.exclusions>
efiacor1c11ab82019-04-09 13:52:17 +000040 <sonar.language>java</sonar.language>
41 <sonar.skip>false</sonar.skip>
eronkeo1841cb52018-08-12 15:46:43 +010042 </properties>
43 <dependencies>
44 <dependency>
efiacor1ccd9c32019-10-08 16:24:28 +010045 <groupId>org.apache.commons</groupId>
46 <artifactId>commons-lang3</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +000047 </dependency>
48 <dependency>
49 <groupId>org.slf4j</groupId>
50 <artifactId>slf4j-api</artifactId>
edepaul555b7fc2018-09-11 08:07:16 +010051 </dependency>
52 <dependency>
edepaul12c71a52018-09-07 16:27:01 +010053 <groupId>commons-codec</groupId>
54 <artifactId>commons-codec</artifactId>
edepaul12c71a52018-09-07 16:27:01 +010055 </dependency>
56 <dependency>
efiacorc466fbd2019-06-25 11:01:10 +000057 <groupId>commons-io</groupId>
58 <artifactId>commons-io</artifactId>
59 </dependency>
60 <dependency>
eronkeo1841cb52018-08-12 15:46:43 +010061 <groupId>org.json</groupId>
62 <artifactId>json</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010063 </dependency>
64 <dependency>
65 <groupId>com.att.eelf</groupId>
66 <artifactId>eelf-core</artifactId>
EmmettCoxb60213d2019-04-08 10:34:31 +000067 </dependency>
68 <dependency>
eronkeo1841cb52018-08-12 15:46:43 +010069 <groupId>ch.qos.logback</groupId>
70 <artifactId>logback-classic</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010071 </dependency>
72 <dependency>
73 <groupId>ch.qos.logback</groupId>
74 <artifactId>logback-core</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +000075 </dependency>
76 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +000077 <groupId>javax.servlet</groupId>
78 <artifactId>javax.servlet-api</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010079 </dependency>
80 <dependency>
81 <groupId>org.eclipse.jetty</groupId>
82 <artifactId>jetty-server</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010083 </dependency>
84 <dependency>
85 <groupId>org.eclipse.jetty</groupId>
86 <artifactId>jetty-util</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010087 </dependency>
88 <dependency>
89 <groupId>org.eclipse.jetty</groupId>
90 <artifactId>jetty-servlet</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010091 </dependency>
92 <dependency>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-http</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010095 </dependency>
96 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +000097 <groupId>org.onap.aaf.authz</groupId>
98 <artifactId>aaf-cadi-core</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +010099 </dependency>
100 <dependency>
efiacor1ccd9c32019-10-08 16:24:28 +0100101 <groupId>com.intellij</groupId>
102 <artifactId>annotations</artifactId>
103 </dependency>
104 <dependency>
105 <groupId>org.hamcrest</groupId>
106 <artifactId>hamcrest-library</artifactId>
107 <scope>test</scope>
108 </dependency>
109 <dependency>
110 <groupId>junit</groupId>
111 <artifactId>junit</artifactId>
112 <scope>test</scope>
113 </dependency>
114 <dependency>
eronkeo1841cb52018-08-12 15:46:43 +0100115 <groupId>org.sonatype.http-testing-harness</groupId>
116 <artifactId>junit-runner</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100117 <scope>test</scope>
eronkeo1841cb52018-08-12 15:46:43 +0100118 </dependency>
119 <dependency>
econwar81734bd2018-08-23 13:46:30 +0000120 <groupId>org.mockito</groupId>
121 <artifactId>mockito-core</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100122 <scope>test</scope>
econwar81734bd2018-08-23 13:46:30 +0000123 </dependency>
124 <dependency>
125 <groupId>org.powermock</groupId>
126 <artifactId>powermock-module-junit4</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100127 <scope>test</scope>
econwar81734bd2018-08-23 13:46:30 +0000128 </dependency>
129 <dependency>
130 <groupId>org.powermock</groupId>
131 <artifactId>powermock-api-mockito</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100132 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000133 </dependency>
134 <dependency>
135 <groupId>org.powermock</groupId>
136 <artifactId>powermock-api-support</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100137 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000138 </dependency>
139 <dependency>
140 <groupId>org.powermock</groupId>
141 <artifactId>powermock-core</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100142 <scope>test</scope>
efiacor5775de72019-03-26 14:29:01 +0000143 </dependency>
econwar5a55b792019-06-24 11:03:58 +0000144 <dependency>
145 <groupId>org.awaitility</groupId>
146 <artifactId>awaitility</artifactId>
147 <version>3.1.6</version>
efiacor1ccd9c32019-10-08 16:24:28 +0100148 <scope>test</scope>
econwar5a55b792019-06-24 11:03:58 +0000149 </dependency>
eronkeo1841cb52018-08-12 15:46:43 +0100150 </dependencies>
151 <profiles>
152 <profile>
153 <id>docker</id>
154 <properties>
eronkeo1841cb52018-08-12 15:46:43 +0100155 <skipTests>true</skipTests>
156 </properties>
157 <build>
158 <plugins>
159 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000160 <groupId>org.codehaus.gmaven</groupId>
161 <artifactId>gmaven-plugin</artifactId>
sandovalfrefad4612019-03-04 09:31:59 -0500162 </plugin>
163 <plugin>
164 <groupId>io.fabric8</groupId>
eronkeo1841cb52018-08-12 15:46:43 +0100165 <artifactId>docker-maven-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100166 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500167 <images>
168 <image>
169 <name>${datarouter.node.image.name}</name>
170 <build>
171 <cleanup>try</cleanup>
172 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
173 <dockerFile>Dockerfile</dockerFile>
174 <tags>
175 <tag>${dockertag1}</tag>
176 <tag>${dockertag2}</tag>
177 </tags>
178 </build>
179 </image>
180 </images>
eronkeo1841cb52018-08-12 15:46:43 +0100181 </configuration>
efiacor1c11ab82019-04-09 13:52:17 +0000182 <executions>
183 <execution>
184 <id>generate-images</id>
185 <phase>install</phase>
186 <goals>
187 <goal>build</goal>
188 </goals>
189 </execution>
190 <execution>
191 <id>push-images</id>
192 <phase>deploy</phase>
193 <goals>
194 <goal>push</goal>
195 </goals>
196 </execution>
197 </executions>
eronkeo1841cb52018-08-12 15:46:43 +0100198 </plugin>
199 </plugins>
200 </build>
201 </profile>
202 </profiles>
eronkeo1841cb52018-08-12 15:46:43 +0100203 <build>
204 <finalName>datarouter-node</finalName>
205 <resources>
206 <resource>
207 <directory>src/main/resources</directory>
208 <filtering>true</filtering>
209 <includes>
210 <include>**/*.properties</include>
211 </includes>
212 </resource>
213 <resource>
214 <directory>src/main/resources</directory>
215 <filtering>true</filtering>
216 <includes>
efiacor1ccd9c32019-10-08 16:24:28 +0100217 <include>**/logback.xml</include>
eronkeo1841cb52018-08-12 15:46:43 +0100218 </includes>
219 </resource>
eronkeo1841cb52018-08-12 15:46:43 +0100220 </resources>
221 <plugins>
222 <plugin>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-compiler-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100225 </plugin>
226 <plugin>
227 <artifactId>maven-assembly-plugin</artifactId>
228 <version>2.4</version>
229 <configuration>
230 <descriptorRefs>
231 <descriptorRef>jar-with-dependencies</descriptorRef>
232 </descriptorRefs>
sandovalfrefad4612019-03-04 09:31:59 -0500233 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
eronkeo1841cb52018-08-12 15:46:43 +0100234 <archive>
235 <manifest>
236 <addClasspath>true</addClasspath>
efiacoradb2ad22019-10-23 15:31:43 +0100237 <mainClass>org.onap.dmaap.datarouter.node.NodeRunner</mainClass>
eronkeo1841cb52018-08-12 15:46:43 +0100238 </manifest>
239 </archive>
240 </configuration>
241 <executions>
242 <execution>
243 <id>make-assembly</id>
244 <!-- this is used for inheritance merges -->
245 <phase>package</phase>
246 <!-- bind to the packaging phase -->
247 <goals>
248 <goal>single</goal>
249 </goals>
250 </execution>
251 </executions>
252 </plugin>
253 <plugin>
254 <groupId>org.apache.maven.plugins</groupId>
255 <artifactId>maven-resources-plugin</artifactId>
256 <version>2.7</version>
257 <executions>
258 <execution>
259 <id>copy-docker-file</id>
sandovalfrefad4612019-03-04 09:31:59 -0500260 <phase>validate</phase>
eronkeo1841cb52018-08-12 15:46:43 +0100261 <goals>
262 <goal>copy-resources</goal>
263 </goals>
264 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500265 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
eronkeo1841cb52018-08-12 15:46:43 +0100266 <overwrite>true</overwrite>
267 <resources>
268 <resource>
269 <directory>${basedir}/src/main/resources/docker</directory>
270 <filtering>true</filtering>
271 <includes>
efiacor1ccd9c32019-10-08 16:24:28 +0100272 <include>Dockerfile</include>
eronkeo1841cb52018-08-12 15:46:43 +0100273 </includes>
274 </resource>
275 </resources>
276 </configuration>
277 </execution>
278 <execution>
sandovalfrefad4612019-03-04 09:31:59 -0500279 <id>copy-startup-script</id>
eronkeo1841cb52018-08-12 15:46:43 +0100280 <phase>validate</phase>
281 <goals>
282 <goal>copy-resources</goal>
283 </goals>
284 <configuration>
sandovalfrefad4612019-03-04 09:31:59 -0500285 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
286 <overwrite>true</overwrite>
287 <resources>
288 <resource>
289 <directory>${basedir}/src/main/resources/docker</directory>
290 <filtering>true</filtering>
291 <includes>
292 <include>startup.sh</include>
293 </includes>
294 </resource>
295 </resources>
296 </configuration>
297 </execution>
298 <execution>
efiacor1ccd9c32019-10-08 16:24:28 +0100299 <id>copy-resources-etc</id>
sandovalfrefad4612019-03-04 09:31:59 -0500300 <phase>validate</phase>
301 <goals>
302 <goal>copy-resources</goal>
303 </goals>
304 <configuration>
305 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
eronkeo1841cb52018-08-12 15:46:43 +0100306 <resources>
307 <resource>
308 <directory>${basedir}/src/main/resources</directory>
309 <includes>
310 <include>misc/**</include>
311 <include>**/**</include>
312 </includes>
efiacor1ccd9c32019-10-08 16:24:28 +0100313 <excludes>
314 <exclude>aaf/**</exclude>
315 <exclude>docker/**</exclude>
316 </excludes>
eronkeo1841cb52018-08-12 15:46:43 +0100317 </resource>
318 </resources>
319 </configuration>
320 </execution>
321 <execution>
efiacor1ccd9c32019-10-08 16:24:28 +0100322 <id>copy-aaf-props</id>
eronkeo1841cb52018-08-12 15:46:43 +0100323 <phase>validate</phase>
324 <goals>
325 <goal>copy-resources</goal>
326 </goals>
327 <configuration>
efiacor1ccd9c32019-10-08 16:24:28 +0100328 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
sandovalfrefad4612019-03-04 09:31:59 -0500329 <resources>
330 <resource>
efiacor1ccd9c32019-10-08 16:24:28 +0100331 <directory>${basedir}/src/main/resources/aaf</directory>
sandovalfrefad4612019-03-04 09:31:59 -0500332 <includes>
sandovalfrefad4612019-03-04 09:31:59 -0500333 <include>**/**</include>
334 </includes>
335 </resource>
336 </resources>
337 </configuration>
338 </execution>
eronkeo1841cb52018-08-12 15:46:43 +0100339 </executions>
340 </plugin>
341 <plugin>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-javadoc-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100344 </plugin>
345 <plugin>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-source-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100348 </plugin>
349 <plugin>
350 <groupId>org.codehaus.mojo</groupId>
351 <artifactId>cobertura-maven-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100352 </plugin>
353 <plugin>
eronkeo1841cb52018-08-12 15:46:43 +0100354 <groupId>org.jacoco</groupId>
355 <artifactId>jacoco-maven-plugin</artifactId>
efiacorf20778f2019-07-23 16:22:03 +0000356 <configuration>
357 <excludes>
efiacoradb2ad22019-10-23 15:31:43 +0100358 <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeRunner.java</exclude>
efiacorf20778f2019-07-23 16:22:03 +0000359 </excludes>
360 </configuration>
efiacor1c11ab82019-04-09 13:52:17 +0000361 </plugin>
362 <plugin>
363 <groupId>org.codehaus.mojo</groupId>
364 <artifactId>properties-maven-plugin</artifactId>
eronkeo1841cb52018-08-12 15:46:43 +0100365 </plugin>
366 </plugins>
367 </build>
368</project>