blob: 334a57fb83946de7cfb0295b78773c1c0b990387 [file] [log] [blame]
efiacor1c11ab82019-04-09 13:52:17 +00001<!--
2 ============LICENSE_START==================================================
3 * org.onap.dmaap
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
7 * ===========================================================================
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>
29 <version>${revision}</version>
30 <relativePath>../pom.xml</relativePath>
31 </parent>
32 <artifactId>datarouter-prov</artifactId>
33 <packaging>jar</packaging>
34 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
35 <properties>
36 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
37 <docker.location>${basedir}/target/${project.artifactId}</docker.location>
38 <datarouter.prov.image.name>${docker.image.root}${project.artifactId}</datarouter.prov.image.name>
efiacor00cc27b2019-07-17 12:44:17 +000039 <sonar.exclusions>**/src/main/java/org/onap/dmaap/datarouter/reports/**,
efiacorf20778f2019-07-23 16:22:03 +000040 src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java,
41 src/main/java/org/onap/dmaap/datarouter/provisioning/Main.java,
42 src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</sonar.exclusions>
efiacor1c11ab82019-04-09 13:52:17 +000043 <sonar.language>java</sonar.language>
44 <sonar.skip>false</sonar.skip>
45 </properties>
46 <dependencies>
47 <dependency>
efiacor1ccd9c32019-10-08 16:24:28 +010048 <groupId>org.apache.commons</groupId>
49 <artifactId>commons-lang3</artifactId>
50 </dependency>
51 <dependency>
52 <groupId>org.mariadb.jdbc</groupId>
53 <artifactId>mariadb-java-client</artifactId>
efiacor68a9ca22019-10-21 13:04:29 +010054 <version>2.5.0</version>
efiacor1ccd9c32019-10-08 16:24:28 +010055 </dependency>
56 <dependency>
efiacor68a9ca22019-10-21 13:04:29 +010057 <groupId>org.apache.commons</groupId>
58 <artifactId>commons-dbcp2</artifactId>
59 <version>2.7.0</version>
efiacor1c11ab82019-04-09 13:52:17 +000060 </dependency>
61 <dependency>
62 <groupId>org.slf4j</groupId>
63 <artifactId>slf4j-api</artifactId>
64 </dependency>
65 <dependency>
66 <groupId>commons-codec</groupId>
67 <artifactId>commons-codec</artifactId>
68 </dependency>
69 <dependency>
70 <groupId>ch.qos.logback</groupId>
71 <artifactId>logback-classic</artifactId>
72 </dependency>
73 <dependency>
74 <groupId>ch.qos.logback</groupId>
75 <artifactId>logback-core</artifactId>
76 </dependency>
77 <dependency>
78 <groupId>org.json</groupId>
79 <artifactId>json</artifactId>
80 </dependency>
81 <dependency>
82 <groupId>com.intellij</groupId>
83 <artifactId>annotations</artifactId>
84 </dependency>
85 <dependency>
86 <groupId>javax.servlet</groupId>
87 <artifactId>javax.servlet-api</artifactId>
88 </dependency>
89 <dependency>
90 <groupId>javax.mail</groupId>
91 <artifactId>javax.mail-api</artifactId>
92 </dependency>
93 <dependency>
94 <groupId>com.att.eelf</groupId>
95 <artifactId>eelf-core</artifactId>
96 </dependency>
97 <dependency>
98 <groupId>org.onap.aaf.authz</groupId>
99 <artifactId>aaf-cadi-core</artifactId>
100 </dependency>
101 <dependency>
102 <groupId>org.eclipse.jetty</groupId>
103 <artifactId>jetty-server</artifactId>
104 </dependency>
105 <dependency>
106 <groupId>org.eclipse.jetty</groupId>
107 <artifactId>jetty-continuation</artifactId>
108 </dependency>
109 <dependency>
110 <groupId>org.eclipse.jetty</groupId>
111 <artifactId>jetty-util</artifactId>
112 </dependency>
113 <dependency>
114 <groupId>org.eclipse.jetty</groupId>
115 <artifactId>jetty-servlet</artifactId>
116 </dependency>
117 <dependency>
118 <groupId>org.eclipse.jetty</groupId>
119 <artifactId>jetty-http</artifactId>
120 </dependency>
121 <dependency>
122 <groupId>org.eclipse.jetty</groupId>
123 <artifactId>jetty-io</artifactId>
124 </dependency>
125 <dependency>
126 <groupId>commons-io</groupId>
127 <artifactId>commons-io</artifactId>
128 </dependency>
129 <dependency>
130 <groupId>org.apache.httpcomponents</groupId>
131 <artifactId>httpcore</artifactId>
132 </dependency>
133 <dependency>
134 <groupId>org.apache.httpcomponents</groupId>
135 <artifactId>httpclient</artifactId>
136 </dependency>
137 <dependency>
efiacor1ccd9c32019-10-08 16:24:28 +0100138 <groupId>org.dom4j</groupId>
139 <artifactId>dom4j</artifactId>
140 <version>2.1.1</version>
141 </dependency>
142 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000143 <groupId>org.sonatype.http-testing-harness</groupId>
144 <artifactId>junit-runner</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100145 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000146 </dependency>
147 <dependency>
148 <groupId>junit</groupId>
149 <artifactId>junit</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100150 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000151 </dependency>
152 <dependency>
153 <groupId>org.mockito</groupId>
154 <artifactId>mockito-core</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100155 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000156 </dependency>
157 <dependency>
158 <groupId>org.powermock</groupId>
159 <artifactId>powermock-module-junit4</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100160 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000161 </dependency>
162 <dependency>
163 <groupId>org.powermock</groupId>
164 <artifactId>powermock-api-mockito</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100165 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000166 </dependency>
167 <dependency>
168 <groupId>org.powermock</groupId>
169 <artifactId>powermock-api-support</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100170 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000171 </dependency>
172 <dependency>
173 <groupId>org.powermock</groupId>
174 <artifactId>powermock-core</artifactId>
efiacor1ccd9c32019-10-08 16:24:28 +0100175 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000176 </dependency>
177 <dependency>
178 <groupId>com.h2database</groupId>
179 <artifactId>h2</artifactId>
180 <version>1.4.197</version>
efiacor1ccd9c32019-10-08 16:24:28 +0100181 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000182 </dependency>
183 <dependency>
184 <groupId>org.hibernate</groupId>
efiacor88a067f2019-07-30 11:49:44 +0000185 <artifactId>hibernate-core</artifactId>
186 <version>5.4.2.Final</version>
econwar74b69ed2019-04-26 13:32:21 +0000187 <exclusions>
188 <exclusion>
189 <groupId>dom4j</groupId>
190 <artifactId>dom4j</artifactId>
191 </exclusion>
192 </exclusions>
efiacor1ccd9c32019-10-08 16:24:28 +0100193 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000194 </dependency>
195 <dependency>
196 <groupId>org.hamcrest</groupId>
efiacor1ccd9c32019-10-08 16:24:28 +0100197 <artifactId>hamcrest-library</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +0000198 <scope>test</scope>
199 </dependency>
200 <dependency>
201 <groupId>org.hibernate.javax.persistence</groupId>
202 <artifactId>hibernate-jpa-2.1-api</artifactId>
203 <version>1.0.2.Final</version>
efiacor1ccd9c32019-10-08 16:24:28 +0100204 <scope>test</scope>
econwarbceb18d2019-04-23 13:32:22 +0000205 </dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000206 </dependencies>
207 <profiles>
208 <profile>
209 <id>docker</id>
210 <properties>
211 <skipTests>true</skipTests>
212 </properties>
213 <build>
214 <plugins>
215 <plugin>
216 <groupId>org.codehaus.gmaven</groupId>
217 <artifactId>gmaven-plugin</artifactId>
218 </plugin>
219 <plugin>
220 <groupId>io.fabric8</groupId>
221 <artifactId>docker-maven-plugin</artifactId>
222 <configuration>
223 <images>
224 <image>
225 <name>${datarouter.prov.image.name}</name>
226 <build>
227 <cleanup>try</cleanup>
efiacord20d5f52020-02-27 16:46:20 +0000228 <noCache>true</noCache>
229 <optimise>true</optimise>
230 <contextDir>${basedir}/target/docker-stage</contextDir>
efiacor1c11ab82019-04-09 13:52:17 +0000231 <dockerFile>Dockerfile</dockerFile>
232 <tags>
233 <tag>${dockertag1}</tag>
234 <tag>${dockertag2}</tag>
235 </tags>
236 </build>
237 </image>
238 </images>
239 </configuration>
240 <executions>
241 <execution>
242 <id>generate-images</id>
243 <phase>install</phase>
244 <goals>
245 <goal>build</goal>
246 </goals>
247 </execution>
248 <execution>
249 <id>push-images</id>
250 <phase>deploy</phase>
251 <goals>
252 <goal>push</goal>
253 </goals>
254 </execution>
255 </executions>
256 </plugin>
257 </plugins>
258 </build>
259 </profile>
260 </profiles>
261 <build>
262 <finalName>datarouter-prov</finalName>
263 <resources>
264 <resource>
265 <directory>src/main/resources</directory>
266 <filtering>true</filtering>
267 <includes>
268 <include>**/*.properties</include>
efiacor1ccd9c32019-10-08 16:24:28 +0100269 <include>**/logback.xml</include>
efiacor1c11ab82019-04-09 13:52:17 +0000270 </includes>
271 </resource>
272 </resources>
273 <plugins>
274 <plugin>
275 <artifactId>maven-assembly-plugin</artifactId>
276 <version>2.4</version>
277 <configuration>
278 <descriptorRefs>
279 <descriptorRef>jar-with-dependencies</descriptorRef>
280 </descriptorRefs>
281 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
282 <archive>
283 <manifest>
284 <addClasspath>true</addClasspath>
efiacor68a9ca22019-10-21 13:04:29 +0100285 <mainClass>org.onap.dmaap.datarouter.provisioning.ProvRunner</mainClass>
efiacor1c11ab82019-04-09 13:52:17 +0000286 </manifest>
287 </archive>
288 </configuration>
289 <executions>
290 <execution>
291 <id>make-assembly</id>
292 <!-- this is used for inheritance merges -->
293 <phase>package</phase>
294 <!-- bind to the packaging phase -->
295 <goals>
296 <goal>single</goal>
297 </goals>
298 </execution>
299 </executions>
300 </plugin>
301 <plugin>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-compiler-plugin</artifactId>
304 </plugin>
305 <!-- Copy files to docker-stage to be included in image -->
306 <plugin>
307 <artifactId>maven-resources-plugin</artifactId>
308 <version>2.7</version>
309 <executions>
310 <execution>
311 <id>copy-dockerfile</id>
312 <phase>validate</phase>
313 <goals>
314 <goal>copy-resources</goal>
315 </goals>
316 <configuration>
317 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
318 <overwrite>true</overwrite>
319 <resources>
320 <resource>
321 <directory>${basedir}/src/main/resources/docker</directory>
322 <filtering>true</filtering>
323 <includes>
324 <include>Dockerfile</include>
325 </includes>
326 </resource>
327 </resources>
328 </configuration>
329 </execution>
330 <execution>
331 <id>copy-startup-script</id>
332 <phase>validate</phase>
333 <goals>
334 <goal>copy-resources</goal>
335 </goals>
336 <configuration>
337 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
338 <overwrite>true</overwrite>
339 <resources>
340 <resource>
341 <directory>${basedir}/src/main/resources/docker</directory>
342 <filtering>true</filtering>
343 <includes>
344 <include>startup.sh</include>
345 </includes>
346 </resource>
347 </resources>
348 </configuration>
349 </execution>
350 <execution>
efiacor1ccd9c32019-10-08 16:24:28 +0100351 <id>copy-resources-etc</id>
efiacor1c11ab82019-04-09 13:52:17 +0000352 <phase>validate</phase>
353 <goals>
354 <goal>copy-resources</goal>
355 </goals>
356 <configuration>
357 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
358 <resources>
359 <resource>
360 <directory>${basedir}/src/main/resources</directory>
361 <includes>
362 <include>misc/**</include>
363 <include>**/**</include>
364 </includes>
efiacor1ccd9c32019-10-08 16:24:28 +0100365 <excludes>
366 <exclude>aaf/**</exclude>
367 <exclude>docker/**</exclude>
368 </excludes>
efiacor1c11ab82019-04-09 13:52:17 +0000369 </resource>
370 </resources>
371 </configuration>
372 </execution>
373 <execution>
efiacor1ccd9c32019-10-08 16:24:28 +0100374 <id>copy-aaf-props</id>
efiacor1c11ab82019-04-09 13:52:17 +0000375 <phase>validate</phase>
376 <goals>
377 <goal>copy-resources</goal>
378 </goals>
379 <configuration>
efiacor1ccd9c32019-10-08 16:24:28 +0100380 <outputDirectory>${basedir}/target/docker-stage/opt/app/osaaf/local</outputDirectory>
efiacor1c11ab82019-04-09 13:52:17 +0000381 <resources>
382 <resource>
efiacor1ccd9c32019-10-08 16:24:28 +0100383 <directory>${basedir}/src/main/resources/aaf</directory>
efiacor1c11ab82019-04-09 13:52:17 +0000384 <includes>
efiacor1c11ab82019-04-09 13:52:17 +0000385 <include>**/**</include>
386 </includes>
387 </resource>
388 </resources>
389 </configuration>
390 </execution>
efiacor1c11ab82019-04-09 13:52:17 +0000391 </executions>
392 </plugin>
393 <plugin>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-javadoc-plugin</artifactId>
396 </plugin>
397 <plugin>
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-source-plugin</artifactId>
400 </plugin>
401 <plugin>
402 <groupId>org.codehaus.mojo</groupId>
403 <artifactId>cobertura-maven-plugin</artifactId>
404 </plugin>
405 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000406 <groupId>org.jacoco</groupId>
407 <artifactId>jacoco-maven-plugin</artifactId>
408 <configuration>
409 <excludes>
410 <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
efiacorf20778f2019-07-23 16:22:03 +0000411 <exclude>src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java</exclude>
efiacoradb2ad22019-10-23 15:31:43 +0100412 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/ProvRunner.java</exclude>
efiacorf20778f2019-07-23 16:22:03 +0000413 <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</exclude>
efiacor1c11ab82019-04-09 13:52:17 +0000414 </excludes>
415 </configuration>
416 </plugin>
417 <plugin>
418 <groupId>org.codehaus.mojo</groupId>
419 <artifactId>properties-maven-plugin</artifactId>
420 </plugin>
421 </plugins>
422 </build>
423</project>