Release patch 2.0.4
[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         <artifact.version>2.0.4-SNAPSHOT</artifact.version>
46         <swagger.version>1.5.19</swagger.version>
47         <log4j.version>2.13.3</log4j.version>
48         <jackson.version>2.9.5</jackson.version>
49         <jersey.version>2.29</jersey.version>
50         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
51         <jettyVersion>9.4.36.v20210114</jettyVersion>
52         <eelf.version>1.0.0</eelf.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             <scope>compile</scope>
167         </dependency>
168         <dependency>
169             <groupId>org.eclipse.jetty</groupId>
170             <artifactId>jetty-servlet</artifactId>
171             <version>${jettyVersion}</version>
172             <scope>compile</scope>
173         </dependency>
174         <dependency>
175             <groupId>org.eclipse.jetty</groupId>
176             <artifactId>jetty-servlets</artifactId>
177             <version>${jettyVersion}</version>
178             <scope>compile</scope>
179         </dependency>
180         <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
181         <dependency>
182             <groupId>com.googlecode.json-simple</groupId>
183             <artifactId>json-simple</artifactId>
184             <version>1.1.1</version>
185         </dependency>
186         <dependency>
187             <groupId>commons-codec</groupId>
188             <artifactId>commons-codec</artifactId>
189             <version>1.15</version>
190         </dependency>
191         <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
192         <dependency>
193             <groupId>org.postgresql</groupId>
194             <artifactId>postgresql</artifactId>
195             <version>42.2.14</version>
196         </dependency>
197         <dependency>
198             <groupId>com.att.eelf</groupId>
199             <artifactId>eelf-core</artifactId>
200             <version>${eelf.version}</version>
201         </dependency>
202         <dependency>
203             <groupId>org.slf4j</groupId>
204             <artifactId>slf4j-api</artifactId>
205             <version>1.7.22</version>
206         </dependency>
207         <dependency>
208             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
209             <!-- use this if compatibility issues with jetty artifactId:
210             <artifactId>jersey-test-framework-provider-jetty</artifactId>
211                 <version>${jersey.version}</version>
212             -->
213             <artifactId>jersey-test-framework-provider-jdk-http</artifactId>
214             <version>2.29.1</version>
215         </dependency>
216         <dependency>
217             <groupId>org.glassfish.jersey.inject</groupId>
218             <artifactId>jersey-hk2</artifactId>
219             <version>2.29.1</version>
220         </dependency>
221         <dependency>
222             <!-- use 2.3.1 to avoid this issue: https://github.com/eclipse-ee4j/jaxb-ri/issues/1222 -->
223             <groupId>javax.xml.bind</groupId>
224             <artifactId>jaxb-api</artifactId>
225             <version>2.3.1</version>
226         </dependency>
227         <dependency>
228             <groupId>javax.activation</groupId>
229             <artifactId>javax.activation-api</artifactId>
230             <version>1.2.0</version>
231         </dependency>
232
233         <dependency>
234             <groupId>junit</groupId>
235             <artifactId>junit</artifactId>
236             <version>${junit.version}</version>
237             <scope>test</scope>
238         </dependency>
239         <dependency>
240             <groupId>pl.pragmatists</groupId>
241             <artifactId>JUnitParams</artifactId>
242             <version>1.1.0</version>
243             <scope>test</scope>
244         </dependency>
245         <dependency>
246             <groupId>org.apache.maven.plugins</groupId>
247             <artifactId>maven-enforcer-plugin</artifactId>
248             <version>3.0.0-M3</version>
249         </dependency>
250     </dependencies>
251
252     <build>
253         <finalName>dbcapi</finalName>
254         <resources>
255             <resource>
256                 <directory>src/main/java/org/onap/dmaap/dbcapi/logging</directory>
257             </resource>
258             <resource>
259                 <directory>src/main/resources</directory>
260             </resource>
261         </resources>
262         <plugins>
263             <!-- reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html -->
264             <plugin>
265                 <groupId>com.github.kongchen</groupId>
266                 <artifactId>swagger-maven-plugin</artifactId>
267                 <version>3.1.5</version>
268                 <configuration>
269                     <apiSources>
270                         <apiSource>
271                             <springmvc>false</springmvc>
272                             <locations>
273                                 <location>org.onap.dmaap.dbcapi.resources</location>
274                             </locations>
275                             <schemes>
276                                 <scheme>http</scheme>
277                                 <scheme>https</scheme>
278                             </schemes>
279                             <host>www.[host]:[port]</host>
280                             <basePath>/webapi</basePath>
281                             <info>
282                                 <title>DMaaP Bus Controller REST API</title>
283                                 <version>1.1.0</version>
284                                 <description>
285                                     provides an API for OpenDCAE components which need to provision
286                                     underlying DMaaP technologies (Data Router and Message Router).
287                                     Primary clients for this API are anticipated to be the OpenDCAE
288                                     Controller, OpenDCAE Orchestrator, OpenDCAE Inventory and the
289                                     ECOMP Portal.
290
291                                     Objects managed by DMaaP are deployed in a dcaeLocation which is
292                                     a unique identifier for an OpenStack tenant for a dcaeLayer,
293                                     opendcae-central (aka ecomp) or opendcae-local-ntc (aka edge).
294
295                                     A dcaeEnvironment (e.g. FTL or prod) has a single DMaaP. A
296                                     DMaaP is managed by a one or more stateless DMaaP Bus
297                                     Controller(s), though Bus Controller relies on PGaaS for
298                                     persistence. Each DMaaP has a single instance of Data Router,
299                                     which has 1 or more DR_Nodes deployed at each dcaeLocation. DR
300                                     Clients of type DR_Pub generally publish to a DR_Node that is
301                                     local to its dcaeLocation. Routing for a Feed is determined by
302                                     the dcaelocation of its DR_Sub clients.
303
304                                     A DMaaP may have many Message Router instances. Each instance is
305                                     deployed as an MR_Cluster. One MR_Cluster is deployed at each
306                                     dcaeLocation. MR_Clients generally communicate to the
307                                     MR_Cluster at the same dcaeLocation. Replication of messages
308                                     between MR_Clusters is accomplished by MR Bridge, which is
309                                     provioned by DMaaP Bus Controller based on Topic attributes.
310
311                                     Therefore, the role of DMaaP Bus Controller is to support other
312                                     DCAE infrastructure components to dynamically provision DMaaP
313                                     services on behalf of DMaaP clients, and to assist in any
314                                     management or discovery activity of its clients.
315
316                                     A convention of this API is to return JSON responses per
317                                     OpenStack style.
318                                 </description>
319                                 <termsOfService>
320                                     http://www.apache.org/licenses/LICENSE-2.0
321                                 </termsOfService>
322                                 <contact>
323                                     <url>http://www.onap.org</url>
324                                 </contact>
325                                 <license>
326                                     <url>http://www.apache.org/licenses/LICENSE-2.0</url>
327                                     <name>Licensed under the Apache License, Version 2.0</name>
328                                 </license>
329                             </info>
330                             <swaggerDirectory>target/generated-sources/</swaggerDirectory>
331                         </apiSource>
332                     </apiSources>
333                 </configuration>
334                 <executions>
335                     <execution>
336                         <phase>compile</phase>
337                         <goals>
338                             <goal>generate</goal>
339                         </goals>
340                     </execution>
341                 </executions>
342             </plugin>
343             <!-- for Staging -->
344             <plugin>
345                 <groupId>org.apache.maven.plugins</groupId>
346                 <artifactId>maven-compiler-plugin</artifactId>
347                 <version>3.8.0</version>
348                 <configuration>
349                     <release>11</release>
350                 </configuration>
351             </plugin>
352             <plugin>
353                 <artifactId>maven-checkstyle-plugin</artifactId>
354                 <executions>
355                     <execution>
356                         <id>onap-java-style</id>
357                         <configuration>
358                             <consoleOutput>false</consoleOutput>
359                         </configuration>
360                     </execution>
361                 </executions>
362             </plugin>
363             <!-- for Distribution Managment -->
364             <plugin>
365                 <groupId>org.apache.maven.plugins</groupId>
366                 <artifactId>maven-site-plugin</artifactId>
367                 <version>3.6</version>
368                 <dependencies>
369                     <dependency>
370                         <groupId>org.apache.maven.wagon</groupId>
371                         <artifactId>wagon-webdav-jackrabbit</artifactId>
372                         <version>2.10</version>
373                     </dependency>
374                 </dependencies>
375             </plugin>
376             <!-- prevent SNAPSHOT dependencies -->
377             <plugin>
378                 <groupId>org.apache.maven.plugins</groupId>
379                 <artifactId>maven-enforcer-plugin</artifactId>
380                 <executions>
381                     <execution>
382                         <id>enforce-no-snapshots</id>
383                         <goals>
384                             <goal>enforce</goal>
385                         </goals>
386                         <configuration>
387                             <rules>
388                                 <requireReleaseDeps>
389                                     <message>No Snapshots Allowed!</message>
390                                     <excludes>
391                                         <exclude>org.onap.aaf.authz:aaf-cadi-client</exclude>
392                                         <exclude>org.onap.aaf.authz:aaf-misc-env</exclude>
393                                         <exclude>org.onap.aaf.authz:aaf-cadi-aaf</exclude>
394                                         <exclude>org.onap.aaf.authz:aaf-auth-client</exclude>
395                                         <exclude>org.onap.aaf.authz:aaf-cadi-core</exclude>
396                                         <exclude>org.onap.aaf.authz:aaf-misc-rosetta</exclude>
397                                     </excludes>
398                                 </requireReleaseDeps>
399                             </rules>
400                             <fail>true</fail>
401                         </configuration>
402                     </execution>
403                 </executions>
404             </plugin>
405             <plugin>
406                 <groupId>org.jacoco</groupId>
407                 <artifactId>jacoco-maven-plugin</artifactId>
408                 <executions>
409                     <execution>
410                         <id>prepare-agent</id>
411                         <goals>
412                             <goal>prepare-agent</goal>
413                         </goals>
414                     </execution>
415                     <execution>
416                         <id>report</id>
417                         <goals>
418                             <goal>report</goal>
419                         </goals>
420                         <configuration>
421                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec
422                             </dataFile>
423                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut
424                             </outputDirectory>
425                         </configuration>
426                     </execution>
427                 </executions>
428             </plugin>
429             <plugin>
430                 <groupId>org.apache.maven.plugins</groupId>
431                 <artifactId>maven-surefire-plugin</artifactId>
432                 <version>2.12.4</version>
433                 <configuration>
434                     <excludes>
435                         <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
436                     </excludes>
437                     <!-- <skipTests>true</skipTests> -->
438                 </configuration>
439             </plugin>
440         </plugins>
441         <pluginManagement>
442             <plugins>
443                 <!--This plugin's configuration is used to store Eclipse m2e settings
444                   only. It has no influence on the Maven build itself. -->
445                 <plugin>
446                     <groupId>org.eclipse.m2e</groupId>
447                     <artifactId>lifecycle-mapping</artifactId>
448                     <version>1.0.0</version>
449                     <configuration>
450                         <lifecycleMappingMetadata>
451                             <pluginExecutions>
452                                 <pluginExecution>
453                                     <pluginExecutionFilter>
454                                         <groupId>org.apache.maven.plugins</groupId>
455                                         <artifactId>maven-dependency-plugin</artifactId>
456                                         <versionRange>[2.10,)</versionRange>
457                                         <goals>
458                                             <goal>copy-dependencies</goal>
459                                         </goals>
460                                     </pluginExecutionFilter>
461                                     <action>
462                                         <ignore/>
463                                     </action>
464                                 </pluginExecution>
465                             </pluginExecutions>
466                         </lifecycleMappingMetadata>
467                     </configuration>
468                 </plugin>
469             </plugins>
470         </pluginManagement>
471     </build>
472
473     <reporting>
474         <plugins>
475             <plugin>
476                 <groupId>org.apache.maven.plugins</groupId>
477                 <artifactId>maven-javadoc-plugin</artifactId>
478                 <version>2.10.4</version>
479                 <configuration>
480                     <failOnError>false</failOnError>
481                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
482                     <docletArtifact>
483                         <groupId>org.umlgraph</groupId>
484                         <artifactId>umlgraph</artifactId>
485                         <version>5.6</version>
486                     </docletArtifact>
487                     <additionalparam>-views</additionalparam>
488                     <useStandardDocletOptions>true</useStandardDocletOptions>
489                 </configuration>
490             </plugin>
491         </plugins>
492     </reporting>
493 </project>