update link to upper-constraints.txt
[dmaap/datarouter.git] / datarouter-prov / pom.xml
1 <!--
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>
39         <sonar.exclusions>**/src/main/java/org/onap/dmaap/datarouter/reports/**,
40             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>
43         <sonar.language>java</sonar.language>
44         <sonar.skip>false</sonar.skip>
45     </properties>
46     <dependencies>
47         <dependency>
48             <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>
54             <version>2.7.3</version>
55         </dependency>
56         <dependency>
57             <groupId>org.apache.commons</groupId>
58             <artifactId>commons-dbcp2</artifactId>
59             <version>2.8.0</version>
60         </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             <exclusions>
97                 <exclusion>
98                     <artifactId>powermock-api-mockito</artifactId>
99                     <groupId>org.powermock</groupId>
100                 </exclusion>
101             </exclusions>
102         </dependency>
103         <dependency>
104             <groupId>org.eclipse.jetty</groupId>
105             <artifactId>jetty-server</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.eclipse.jetty</groupId>
109             <artifactId>jetty-continuation</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>org.eclipse.jetty</groupId>
113             <artifactId>jetty-util</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>org.eclipse.jetty</groupId>
117             <artifactId>jetty-servlet</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>org.eclipse.jetty</groupId>
121             <artifactId>jetty-http</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.eclipse.jetty</groupId>
125             <artifactId>jetty-io</artifactId>
126         </dependency>
127         <dependency>
128             <groupId>commons-io</groupId>
129             <artifactId>commons-io</artifactId>
130         </dependency>
131         <dependency>
132             <groupId>org.apache.httpcomponents</groupId>
133             <artifactId>httpcore</artifactId>
134         </dependency>
135         <dependency>
136             <groupId>org.apache.httpcomponents</groupId>
137             <artifactId>httpclient</artifactId>
138         </dependency>
139         <dependency>
140             <groupId>org.sonatype.http-testing-harness</groupId>
141             <artifactId>junit-runner</artifactId>
142             <scope>test</scope>
143             <exclusions>
144                 <exclusion>
145                     <artifactId>powermock-reflect</artifactId>
146                     <groupId>org.powermock</groupId>
147                 </exclusion>
148                 <exclusion>
149                     <artifactId>powermock-api-mockito</artifactId>
150                     <groupId>org.powermock</groupId>
151                 </exclusion>
152                 <exclusion>
153                     <artifactId>jetty-security</artifactId>
154                     <groupId>org.eclipse.jetty</groupId>
155                 </exclusion>
156                 <exclusion>
157                     <artifactId>jsr305</artifactId>
158                     <groupId>com.google.code.findbugs</groupId>
159                 </exclusion>
160             </exclusions>
161         </dependency>
162         <dependency>
163             <groupId>junit</groupId>
164             <artifactId>junit</artifactId>
165             <scope>test</scope>
166         </dependency>
167         <dependency>
168             <groupId>org.mockito</groupId>
169             <artifactId>mockito-core</artifactId>
170             <scope>test</scope>
171         </dependency>
172         <dependency>
173             <groupId>org.powermock</groupId>
174             <artifactId>powermock-module-junit4</artifactId>
175             <scope>test</scope>
176         </dependency>
177         <dependency>
178             <groupId>org.powermock</groupId>
179             <artifactId>powermock-api-mockito2</artifactId>
180             <scope>test</scope>
181         </dependency>
182         <dependency>
183             <groupId>org.powermock</groupId>
184             <artifactId>powermock-api-support</artifactId>
185             <scope>test</scope>
186         </dependency>
187         <dependency>
188             <groupId>org.powermock</groupId>
189             <artifactId>powermock-core</artifactId>
190             <scope>test</scope>
191         </dependency>
192         <dependency>
193             <groupId>org.powermock</groupId>
194             <artifactId>powermock-module-junit4-rule</artifactId>
195         </dependency>
196         <dependency>
197             <groupId>net.bytebuddy</groupId>
198             <artifactId>byte-buddy</artifactId>
199         </dependency>
200         <dependency>
201             <groupId>net.bytebuddy</groupId>
202             <artifactId>byte-buddy-agent</artifactId>
203         </dependency>
204         <dependency>
205             <groupId>org.objenesis</groupId>
206             <artifactId>objenesis</artifactId>
207         </dependency>
208         <dependency>
209             <groupId>org.javassist</groupId>
210             <artifactId>javassist</artifactId>
211         </dependency>
212         <dependency>
213             <groupId>com.h2database</groupId>
214             <artifactId>h2</artifactId>
215             <version>1.4.197</version>
216             <scope>test</scope>
217         </dependency>
218         <dependency>
219             <groupId>org.hibernate</groupId>
220             <artifactId>hibernate-core</artifactId>
221             <version>5.4.2.Final</version>
222             <exclusions>
223                 <exclusion>
224                     <groupId>dom4j</groupId>
225                     <artifactId>dom4j</artifactId>
226                 </exclusion>
227             </exclusions>
228             <scope>test</scope>
229         </dependency>
230         <dependency>
231             <groupId>org.hamcrest</groupId>
232             <artifactId>hamcrest-all</artifactId>
233             <scope>test</scope>
234         </dependency>
235         <dependency>
236             <groupId>org.hibernate.javax.persistence</groupId>
237             <artifactId>hibernate-jpa-2.1-api</artifactId>
238             <version>1.0.2.Final</version>
239             <scope>test</scope>
240         </dependency>
241     </dependencies>
242     <profiles>
243         <profile>
244             <id>docker</id>
245             <properties>
246                 <skipTests>true</skipTests>
247             </properties>
248             <build>
249                 <plugins>
250                     <plugin>
251                         <groupId>org.codehaus.gmavenplus</groupId>
252                         <artifactId>gmavenplus-plugin</artifactId>
253                     </plugin>
254                     <plugin>
255                         <groupId>io.fabric8</groupId>
256                         <artifactId>docker-maven-plugin</artifactId>
257                         <configuration>
258                             <images>
259                                 <image>
260                                     <name>${datarouter.prov.image.name}</name>
261                                     <build>
262                                         <cleanup>try</cleanup>
263                                         <noCache>true</noCache>
264                                         <optimise>true</optimise>
265                                         <contextDir>${basedir}/target/docker-stage</contextDir>
266                                         <dockerFile>Dockerfile</dockerFile>
267                                         <tags>
268                                             <tag>${dockertag1}</tag>
269                                             <tag>${dockertag2}</tag>
270                                         </tags>
271                                     </build>
272                                 </image>
273                             </images>
274                         </configuration>
275                         <executions>
276                             <execution>
277                                 <id>generate-images</id>
278                                 <phase>install</phase>
279                                 <goals>
280                                     <goal>build</goal>
281                                 </goals>
282                             </execution>
283                             <execution>
284                                 <id>push-images</id>
285                                 <phase>deploy</phase>
286                                 <goals>
287                                     <goal>push</goal>
288                                 </goals>
289                             </execution>
290                         </executions>
291                     </plugin>
292                 </plugins>
293             </build>
294         </profile>
295     </profiles>
296     <build>
297         <finalName>datarouter-prov</finalName>
298         <resources>
299             <resource>
300                 <directory>src/main/resources</directory>
301                 <filtering>true</filtering>
302                 <includes>
303                     <include>**/*.properties</include>
304                     <include>**/logback.xml</include>
305                 </includes>
306             </resource>
307         </resources>
308         <plugins>
309             <plugin>
310                 <artifactId>maven-assembly-plugin</artifactId>
311                 <version>2.4</version>
312                 <configuration>
313                     <descriptorRefs>
314                         <descriptorRef>jar-with-dependencies</descriptorRef>
315                     </descriptorRefs>
316                     <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
317                     <archive>
318                         <manifest>
319                             <addClasspath>true</addClasspath>
320                             <mainClass>org.onap.dmaap.datarouter.provisioning.ProvRunner</mainClass>
321                         </manifest>
322                     </archive>
323                 </configuration>
324                 <executions>
325                     <execution>
326                         <id>make-assembly</id>
327                         <!-- this is used for inheritance merges -->
328                         <phase>package</phase>
329                         <!-- bind to the packaging phase -->
330                         <goals>
331                             <goal>single</goal>
332                         </goals>
333                     </execution>
334                 </executions>
335             </plugin>
336             <plugin>
337                 <groupId>org.apache.maven.plugins</groupId>
338                 <artifactId>maven-compiler-plugin</artifactId>
339             </plugin>
340             <!-- Copy files to docker-stage to be included in image -->
341             <plugin>
342                 <artifactId>maven-resources-plugin</artifactId>
343                 <version>2.7</version>
344                 <executions>
345                     <execution>
346                         <id>copy-dockerfile</id>
347                         <phase>validate</phase>
348                         <goals>
349                             <goal>copy-resources</goal>
350                         </goals>
351                         <configuration>
352                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
353                             <overwrite>true</overwrite>
354                             <resources>
355                                 <resource>
356                                     <directory>${basedir}/src/main/resources/docker</directory>
357                                     <filtering>true</filtering>
358                                     <includes>
359                                         <include>Dockerfile</include>
360                                     </includes>
361                                 </resource>
362                             </resources>
363                         </configuration>
364                     </execution>
365                     <execution>
366                         <id>copy-startup-script</id>
367                         <phase>validate</phase>
368                         <goals>
369                             <goal>copy-resources</goal>
370                         </goals>
371                         <configuration>
372                             <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
373                             <overwrite>true</overwrite>
374                             <resources>
375                                 <resource>
376                                     <directory>${basedir}/src/main/resources/docker</directory>
377                                     <filtering>true</filtering>
378                                     <includes>
379                                         <include>startup.sh</include>
380                                     </includes>
381                                 </resource>
382                             </resources>
383                         </configuration>
384                     </execution>
385                     <execution>
386                         <id>copy-resources-etc</id>
387                         <phase>validate</phase>
388                         <goals>
389                             <goal>copy-resources</goal>
390                         </goals>
391                         <configuration>
392                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
393                             <resources>
394                                 <resource>
395                                     <directory>${basedir}/src/main/resources</directory>
396                                     <includes>
397                                         <include>misc/**</include>
398                                         <include>**/**</include>
399                                     </includes>
400                                     <excludes>
401                                         <exclude>docker/**</exclude>
402                                     </excludes>
403                                 </resource>
404                             </resources>
405                         </configuration>
406                     </execution>
407                 </executions>
408             </plugin>
409             <plugin>
410                 <groupId>org.apache.maven.plugins</groupId>
411                 <artifactId>maven-javadoc-plugin</artifactId>
412             </plugin>
413             <plugin>
414                 <groupId>org.apache.maven.plugins</groupId>
415                 <artifactId>maven-source-plugin</artifactId>
416             </plugin>
417             <plugin>
418                 <groupId>org.codehaus.mojo</groupId>
419                 <artifactId>cobertura-maven-plugin</artifactId>
420             </plugin>
421             <plugin>
422                 <groupId>org.jacoco</groupId>
423                 <artifactId>jacoco-maven-plugin</artifactId>
424                 <configuration>
425                     <excludes>
426                         <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
427                         <exclude>src/main/java/org/onap/dmaap/datarouter/authz/impl/AuthRespSupplementImpl.java</exclude>
428                         <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/ProvRunner.java</exclude>
429                         <exclude>src/main/java/org/onap/dmaap/datarouter/provisioning/utils/DRRouteCLI.java</exclude>
430                     </excludes>
431                 </configuration>
432             </plugin>
433             <plugin>
434                 <groupId>org.codehaus.mojo</groupId>
435                 <artifactId>properties-maven-plugin</artifactId>
436             </plugin>
437         </plugins>
438     </build>
439 </project>