[DMaap-dbcapi] Updated Outdated Packages
[dmaap/dbcapi.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3   ============LICENSE_START==========================================
4   org.onap.dmaap
5   ===================================================================
6   Copyright © 2018 AT&T Intellectual Property. 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   ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25
26     <modelVersion>4.0.0</modelVersion>
27     <groupId>org.onap.dmaap.dbcapi</groupId>
28     <artifactId>dbcapi</artifactId>
29     <version>${artifact.version}</version>
30     <name>dmaap-dbcapi</name>
31
32     <parent>
33         <groupId>org.onap.oparent</groupId>
34         <artifactId>oparent</artifactId>
35         <version>3.2.0</version>
36         <relativePath/>
37     </parent>
38
39     <description>Data Movement as a Platform (DMaaP) Bus Controller provides a REST API for other
40         DCAE infrastructure components to provision DMaaP resources. A DMaaP resource is a Data
41         Router Feed or a Message Router Topic, and their associated publishers and subscribers.
42     </description>
43
44     <properties>
45         <swagger.version>1.5.19</swagger.version>
46         <log4j.version>2.13.3</log4j.version>
47         <jackson.version>2.9.5</jackson.version>
48         <jersey.version>2.29</jersey.version>
49         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50         <jettyVersion>9.4.36.v20210114</jettyVersion>
51         <eelf.version>1.0.0</eelf.version>
52         <artifact.version>2.0.3-SNAPSHOT</artifact.version>
53         <junit.version>4.12</junit.version>
54         <!-- SONAR -->
55         <sonar.language>java</sonar.language>
56         <sonar.skip>false</sonar.skip>
57         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
58         </sonar.surefire.reportsPath>
59         <sonar.coverage.jacoco.xmlReportPaths>
60             ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
61         </sonar.coverage.jacoco.xmlReportPaths>
62         <sonar.projectVersion>${project.version}</sonar.projectVersion>
63         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**
64         </sonar.exclusions>
65
66         <!-- for Distribution Management -->
67         <sitePath>/content/sites/site/org/onap/dmaap/dbcapi/${artifact.version}/${project.version}
68         </sitePath>
69         <nexusproxy>https://nexus.onap.org</nexusproxy>
70     </properties>
71
72     <distributionManagement>
73         <site>
74             <id>ecomp-site</id>
75             <url>dav:${nexusproxy}${sitePath}</url>
76         </site>
77     </distributionManagement>
78
79     <dependencyManagement>
80         <dependencies>
81             <dependency>
82                 <groupId>org.glassfish.jersey</groupId>
83                 <artifactId>jersey-bom</artifactId>
84                 <version>${jersey.version}</version>
85                 <type>pom</type>
86                 <scope>import</scope>
87             </dependency>
88         </dependencies>
89     </dependencyManagement>
90
91     <dependencies>
92         <dependency>
93             <groupId>org.onap.aaf.authz</groupId>
94             <artifactId>aaf-cadi-aaf</artifactId>
95             <version>2.1.7</version>
96             <classifier>full</classifier>
97         </dependency>
98         <dependency>
99             <groupId>com.fasterxml.jackson.core</groupId>
100             <artifactId>jackson-annotations</artifactId>
101             <version>${jackson.version}</version>
102         </dependency>
103         <dependency>
104             <groupId>com.fasterxml.jackson.dataformat</groupId>
105             <artifactId>jackson-dataformat-yaml</artifactId>
106             <version>${jackson.version}</version>
107         </dependency>
108         <dependency>
109             <groupId>ch.qos.logback</groupId>
110             <artifactId>logback-core</artifactId>
111             <version>1.2.3</version>
112         </dependency>
113         <dependency>
114             <groupId>ch.qos.logback</groupId>
115             <artifactId>logback-classic</artifactId>
116             <version>1.2.3</version>
117         </dependency>
118         <!-- DMAAP-656:
119            - override this dependency because it utilized a third party
120            - lib called com.google.guava:20.0 which had severe security threat identified.
121          -->
122         <dependency>
123             <groupId>com.google.guava</groupId>
124             <artifactId>guava</artifactId>
125             <version>24.1.1-jre</version>
126         </dependency>
127         <dependency>
128             <groupId>io.swagger</groupId>
129             <artifactId>swagger-core</artifactId>
130             <version>${swagger.version}</version>
131         </dependency>
132         <dependency>
133             <groupId>io.swagger</groupId>
134             <artifactId>swagger-jersey2-jaxrs</artifactId>
135             <version>${swagger.version}</version>
136         </dependency>
137         <dependency>
138             <groupId>io.swagger</groupId>
139             <artifactId>swagger-annotations</artifactId>
140             <version>${swagger.version}</version>
141         </dependency>
142         <dependency>
143             <groupId>org.glassfish.jersey.containers</groupId>
144             <artifactId>jersey-container-servlet-core</artifactId>
145             <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
146             <!-- artifactId>jersey-container-servlet</artifactId -->
147         </dependency>
148         <dependency>
149             <groupId>org.glassfish.jersey.media</groupId>
150             <artifactId>jersey-media-moxy</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>org.apache.logging.log4j</groupId>
154             <artifactId>log4j-api</artifactId>
155             <version>${log4j.version}</version>
156         </dependency>
157         <dependency>
158             <groupId>org.apache.logging.log4j</groupId>
159             <artifactId>log4j-core</artifactId>
160             <version>${log4j.version}</version>
161         </dependency>
162         <dependency>
163             <groupId>org.eclipse.jetty</groupId>
164             <artifactId>jetty-server</artifactId>
165             <version>${jettyVersion}</version>
166         </dependency>
167         <dependency>
168             <groupId>org.eclipse.jetty</groupId>
169             <artifactId>jetty-servlet</artifactId>
170             <version>${jettyVersion}</version>
171             <scope>compile</scope>
172         </dependency>
173         <dependency>
174             <groupId>org.eclipse.jetty</groupId>
175             <artifactId>jetty-servlets</artifactId>
176             <version>${jettyVersion}</version>
177             <scope>compile</scope>
178         </dependency>
179         <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
180         <dependency>
181             <groupId>com.googlecode.json-simple</groupId>
182             <artifactId>json-simple</artifactId>
183             <version>1.1.1</version>
184         </dependency>
185         <dependency>
186             <groupId>commons-codec</groupId>
187             <artifactId>commons-codec</artifactId>
188             <version>1.15</version>
189         </dependency>
190         <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
191         <dependency>
192             <groupId>org.postgresql</groupId>
193             <artifactId>postgresql</artifactId>
194             <version>42.2.14</version>
195         </dependency>
196         <dependency>
197             <groupId>com.att.eelf</groupId>
198             <artifactId>eelf-core</artifactId>
199             <version>${eelf.version}</version>
200         </dependency>
201         <dependency>
202             <groupId>org.slf4j</groupId>
203             <artifactId>slf4j-api</artifactId>
204             <version>1.7.22</version>
205         </dependency>
206         <dependency>
207             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
208             <!-- use this if compatibility issues with jetty artifactId:
209             <artifactId>jersey-test-framework-provider-jetty</artifactId>
210                 <version>${jersey.version}</version>
211             -->
212             <artifactId>jersey-test-framework-provider-jdk-http</artifactId>
213             <version>2.29.1</version>
214         </dependency>
215         <dependency>
216             <groupId>org.glassfish.jersey.inject</groupId>
217             <artifactId>jersey-hk2</artifactId>
218             <version>2.29.1</version>
219         </dependency>
220         <dependency>
221             <!-- use 2.3.1 to avoid this issue: https://github.com/eclipse-ee4j/jaxb-ri/issues/1222 -->
222             <groupId>javax.xml.bind</groupId>
223             <artifactId>jaxb-api</artifactId>
224             <version>2.3.1</version>
225         </dependency>
226         <dependency>
227             <groupId>javax.activation</groupId>
228             <artifactId>javax.activation-api</artifactId>
229             <version>1.2.0</version>
230         </dependency>
231
232         <dependency>
233             <groupId>junit</groupId>
234             <artifactId>junit</artifactId>
235             <version>${junit.version}</version>
236             <scope>test</scope>
237         </dependency>
238         <dependency>
239             <groupId>pl.pragmatists</groupId>
240             <artifactId>JUnitParams</artifactId>
241             <version>1.1.0</version>
242             <scope>test</scope>
243         </dependency>
244         <dependency>
245             <groupId>org.apache.maven.plugins</groupId>
246             <artifactId>maven-enforcer-plugin</artifactId>
247             <version>3.0.0-M3</version>
248         </dependency>
249     </dependencies>
250
251     <build>
252         <finalName>dbcapi</finalName>
253         <resources>
254             <resource>
255                 <directory>src/main/java/org/onap/dmaap/dbcapi/logging</directory>
256             </resource>
257             <resource>
258                 <directory>src/main/resources</directory>
259             </resource>
260         </resources>
261         <plugins>
262             <!-- reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html -->
263             <plugin>
264                 <groupId>com.github.kongchen</groupId>
265                 <artifactId>swagger-maven-plugin</artifactId>
266                 <version>3.1.5</version>
267                 <configuration>
268                     <apiSources>
269                         <apiSource>
270                             <springmvc>false</springmvc>
271                             <locations>
272                                 <location>org.onap.dmaap.dbcapi.resources</location>
273                             </locations>
274                             <schemes>
275                                 <scheme>http</scheme>
276                                 <scheme>https</scheme>
277                             </schemes>
278                             <host>www.[host]:[port]</host>
279                             <basePath>/webapi</basePath>
280                             <info>
281                                 <title>DMaaP Bus Controller REST API</title>
282                                 <version>1.1.0</version>
283                                 <description>
284                                     provides an API for OpenDCAE components which need to provision
285                                     underlying DMaaP technologies (Data Router and Message Router).
286                                     Primary clients for this API are anticipated to be the OpenDCAE
287                                     Controller, OpenDCAE Orchestrator, OpenDCAE Inventory and the
288                                     ECOMP Portal.
289
290                                     Objects managed by DMaaP are deployed in a dcaeLocation which is
291                                     a unique identifier for an OpenStack tenant for a dcaeLayer,
292                                     opendcae-central (aka ecomp) or opendcae-local-ntc (aka edge).
293
294                                     A dcaeEnvironment (e.g. FTL or prod) has a single DMaaP. A
295                                     DMaaP is managed by a one or more stateless DMaaP Bus
296                                     Controller(s), though Bus Controller relies on PGaaS for
297                                     persistence. Each DMaaP has a single instance of Data Router,
298                                     which has 1 or more DR_Nodes deployed at each dcaeLocation. DR
299                                     Clients of type DR_Pub generally publish to a DR_Node that is
300                                     local to its dcaeLocation. Routing for a Feed is determined by
301                                     the dcaelocation of its DR_Sub clients.
302
303                                     A DMaaP may have many Message Router instances. Each instance is
304                                     deployed as an MR_Cluster. One MR_Cluster is deployed at each
305                                     dcaeLocation. MR_Clients generally communicate to the
306                                     MR_Cluster at the same dcaeLocation. Replication of messages
307                                     between MR_Clusters is accomplished by MR Bridge, which is
308                                     provioned by DMaaP Bus Controller based on Topic attributes.
309
310                                     Therefore, the role of DMaaP Bus Controller is to support other
311                                     DCAE infrastructure components to dynamically provision DMaaP
312                                     services on behalf of DMaaP clients, and to assist in any
313                                     management or discovery activity of its clients.
314
315                                     A convention of this API is to return JSON responses per
316                                     OpenStack style.
317                                 </description>
318                                 <termsOfService>
319                                     http://www.apache.org/licenses/LICENSE-2.0
320                                 </termsOfService>
321                                 <contact>
322                                     <url>http://www.onap.org</url>
323                                 </contact>
324                                 <license>
325                                     <url>http://www.apache.org/licenses/LICENSE-2.0</url>
326                                     <name>Licensed under the Apache License, Version 2.0</name>
327                                 </license>
328                             </info>
329                             <swaggerDirectory>target/generated-sources/</swaggerDirectory>
330                         </apiSource>
331                     </apiSources>
332                 </configuration>
333                 <executions>
334                     <execution>
335                         <phase>compile</phase>
336                         <goals>
337                             <goal>generate</goal>
338                         </goals>
339                     </execution>
340                 </executions>
341             </plugin>
342             <!-- for Staging -->
343             <plugin>
344                 <groupId>org.apache.maven.plugins</groupId>
345                 <artifactId>maven-compiler-plugin</artifactId>
346                 <version>3.8.0</version>
347                 <configuration>
348                     <release>11</release>
349                 </configuration>
350             </plugin>
351             <plugin>
352                 <artifactId>maven-checkstyle-plugin</artifactId>
353                 <executions>
354                     <execution>
355                         <id>onap-java-style</id>
356                         <configuration>
357                             <consoleOutput>false</consoleOutput>
358                         </configuration>
359                     </execution>
360                 </executions>
361             </plugin>
362             <!-- for Distribution Managment -->
363             <plugin>
364                 <groupId>org.apache.maven.plugins</groupId>
365                 <artifactId>maven-site-plugin</artifactId>
366                 <version>3.6</version>
367                 <dependencies>
368                     <dependency>
369                         <groupId>org.apache.maven.wagon</groupId>
370                         <artifactId>wagon-webdav-jackrabbit</artifactId>
371                         <version>2.10</version>
372                     </dependency>
373                 </dependencies>
374             </plugin>
375             <!-- prevent SNAPSHOT dependencies -->
376             <plugin>
377                 <groupId>org.apache.maven.plugins</groupId>
378                 <artifactId>maven-enforcer-plugin</artifactId>
379                 <executions>
380                     <execution>
381                         <id>enforce-no-snapshots</id>
382                         <goals>
383                             <goal>enforce</goal>
384                         </goals>
385                         <configuration>
386                             <rules>
387                                 <requireReleaseDeps>
388                                     <message>No Snapshots Allowed!</message>
389                                     <excludes>
390                                         <exclude>org.onap.aaf.authz:aaf-cadi-client</exclude>
391                                         <exclude>org.onap.aaf.authz:aaf-misc-env</exclude>
392                                         <exclude>org.onap.aaf.authz:aaf-cadi-aaf</exclude>
393                                         <exclude>org.onap.aaf.authz:aaf-auth-client</exclude>
394                                         <exclude>org.onap.aaf.authz:aaf-cadi-core</exclude>
395                                         <exclude>org.onap.aaf.authz:aaf-misc-rosetta</exclude>
396                                     </excludes>
397                                 </requireReleaseDeps>
398                             </rules>
399                             <fail>true</fail>
400                         </configuration>
401                     </execution>
402                 </executions>
403             </plugin>
404             <plugin>
405                 <groupId>org.jacoco</groupId>
406                 <artifactId>jacoco-maven-plugin</artifactId>
407                 <executions>
408                     <execution>
409                         <id>prepare-agent</id>
410                         <goals>
411                             <goal>prepare-agent</goal>
412                         </goals>
413                     </execution>
414                     <execution>
415                         <id>report</id>
416                         <goals>
417                             <goal>report</goal>
418                         </goals>
419                         <configuration>
420                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec
421                             </dataFile>
422                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut
423                             </outputDirectory>
424                         </configuration>
425                     </execution>
426                 </executions>
427             </plugin>
428             <plugin>
429                 <groupId>org.apache.maven.plugins</groupId>
430                 <artifactId>maven-surefire-plugin</artifactId>
431                 <version>2.12.4</version>
432                 <configuration>
433                     <excludes>
434                         <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
435                     </excludes>
436                     <!-- <skipTests>true</skipTests> -->
437                 </configuration>
438             </plugin>
439         </plugins>
440         <pluginManagement>
441             <plugins>
442                 <!--This plugin's configuration is used to store Eclipse m2e settings
443                   only. It has no influence on the Maven build itself. -->
444                 <plugin>
445                     <groupId>org.eclipse.m2e</groupId>
446                     <artifactId>lifecycle-mapping</artifactId>
447                     <version>1.0.0</version>
448                     <configuration>
449                         <lifecycleMappingMetadata>
450                             <pluginExecutions>
451                                 <pluginExecution>
452                                     <pluginExecutionFilter>
453                                         <groupId>org.apache.maven.plugins</groupId>
454                                         <artifactId>maven-dependency-plugin</artifactId>
455                                         <versionRange>[2.10,)</versionRange>
456                                         <goals>
457                                             <goal>copy-dependencies</goal>
458                                         </goals>
459                                     </pluginExecutionFilter>
460                                     <action>
461                                         <ignore/>
462                                     </action>
463                                 </pluginExecution>
464                             </pluginExecutions>
465                         </lifecycleMappingMetadata>
466                     </configuration>
467                 </plugin>
468             </plugins>
469         </pluginManagement>
470     </build>
471
472     <reporting>
473         <plugins>
474             <plugin>
475                 <groupId>org.apache.maven.plugins</groupId>
476                 <artifactId>maven-javadoc-plugin</artifactId>
477                 <version>2.10.4</version>
478                 <configuration>
479                     <failOnError>false</failOnError>
480                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
481                     <docletArtifact>
482                         <groupId>org.umlgraph</groupId>
483                         <artifactId>umlgraph</artifactId>
484                         <version>5.6</version>
485                     </docletArtifact>
486                     <additionalparam>-views</additionalparam>
487                     <useStandardDocletOptions>true</useStandardDocletOptions>
488                 </configuration>
489             </plugin>
490         </plugins>
491     </reporting>
492 </project>