3 ============LICENSE_START==========================================
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
12 http://www.apache.org/licenses/LICENSE-2.0
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.
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">
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>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
35 <version>3.2.0</version>
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.
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>
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/**
66 <!-- for Distribution Management -->
67 <sitePath>/content/sites/site/org/onap/dmaap/dbcapi/${artifact.version}/${project.version}
69 <nexusproxy>https://nexus.onap.org</nexusproxy>
72 <distributionManagement>
75 <url>dav:${nexusproxy}${sitePath}</url>
77 </distributionManagement>
79 <dependencyManagement>
82 <groupId>org.glassfish.jersey</groupId>
83 <artifactId>jersey-bom</artifactId>
84 <version>${jersey.version}</version>
89 </dependencyManagement>
93 <groupId>org.onap.aaf.authz</groupId>
94 <artifactId>aaf-cadi-aaf</artifactId>
95 <version>2.1.7</version>
96 <classifier>full</classifier>
99 <groupId>com.fasterxml.jackson.core</groupId>
100 <artifactId>jackson-annotations</artifactId>
101 <version>${jackson.version}</version>
104 <groupId>com.fasterxml.jackson.dataformat</groupId>
105 <artifactId>jackson-dataformat-yaml</artifactId>
106 <version>${jackson.version}</version>
109 <groupId>ch.qos.logback</groupId>
110 <artifactId>logback-core</artifactId>
111 <version>1.2.3</version>
114 <groupId>ch.qos.logback</groupId>
115 <artifactId>logback-classic</artifactId>
116 <version>1.2.3</version>
119 - override this dependency because it utilized a third party
120 - lib called com.google.guava:20.0 which had severe security threat identified.
123 <groupId>com.google.guava</groupId>
124 <artifactId>guava</artifactId>
125 <version>24.1.1-jre</version>
128 <groupId>io.swagger</groupId>
129 <artifactId>swagger-core</artifactId>
130 <version>${swagger.version}</version>
133 <groupId>io.swagger</groupId>
134 <artifactId>swagger-jersey2-jaxrs</artifactId>
135 <version>${swagger.version}</version>
138 <groupId>io.swagger</groupId>
139 <artifactId>swagger-annotations</artifactId>
140 <version>${swagger.version}</version>
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 -->
149 <groupId>org.glassfish.jersey.media</groupId>
150 <artifactId>jersey-media-moxy</artifactId>
153 <groupId>org.apache.logging.log4j</groupId>
154 <artifactId>log4j-api</artifactId>
155 <version>${log4j.version}</version>
158 <groupId>org.apache.logging.log4j</groupId>
159 <artifactId>log4j-core</artifactId>
160 <version>${log4j.version}</version>
163 <groupId>org.eclipse.jetty</groupId>
164 <artifactId>jetty-server</artifactId>
165 <version>${jettyVersion}</version>
166 <scope>compile</scope>
169 <groupId>org.eclipse.jetty</groupId>
170 <artifactId>jetty-servlet</artifactId>
171 <version>${jettyVersion}</version>
172 <scope>compile</scope>
175 <groupId>org.eclipse.jetty</groupId>
176 <artifactId>jetty-servlets</artifactId>
177 <version>${jettyVersion}</version>
178 <scope>compile</scope>
180 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
182 <groupId>com.googlecode.json-simple</groupId>
183 <artifactId>json-simple</artifactId>
184 <version>1.1.1</version>
187 <groupId>commons-codec</groupId>
188 <artifactId>commons-codec</artifactId>
189 <version>1.15</version>
191 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
193 <groupId>org.postgresql</groupId>
194 <artifactId>postgresql</artifactId>
195 <version>42.2.14</version>
198 <groupId>com.att.eelf</groupId>
199 <artifactId>eelf-core</artifactId>
200 <version>${eelf.version}</version>
203 <groupId>org.slf4j</groupId>
204 <artifactId>slf4j-api</artifactId>
205 <version>1.7.22</version>
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>
213 <artifactId>jersey-test-framework-provider-jdk-http</artifactId>
214 <version>2.29.1</version>
217 <groupId>org.glassfish.jersey.inject</groupId>
218 <artifactId>jersey-hk2</artifactId>
219 <version>2.29.1</version>
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>
228 <groupId>javax.activation</groupId>
229 <artifactId>javax.activation-api</artifactId>
230 <version>1.2.0</version>
234 <groupId>junit</groupId>
235 <artifactId>junit</artifactId>
236 <version>${junit.version}</version>
240 <groupId>pl.pragmatists</groupId>
241 <artifactId>JUnitParams</artifactId>
242 <version>1.1.0</version>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-enforcer-plugin</artifactId>
248 <version>3.0.0-M3</version>
253 <finalName>dbcapi</finalName>
256 <directory>src/main/java/org/onap/dmaap/dbcapi/logging</directory>
259 <directory>src/main/resources</directory>
263 <!-- reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html -->
265 <groupId>com.github.kongchen</groupId>
266 <artifactId>swagger-maven-plugin</artifactId>
267 <version>3.1.5</version>
271 <springmvc>false</springmvc>
273 <location>org.onap.dmaap.dbcapi.resources</location>
276 <scheme>http</scheme>
277 <scheme>https</scheme>
279 <host>www.[host]:[port]</host>
280 <basePath>/webapi</basePath>
282 <title>DMaaP Bus Controller REST API</title>
283 <version>1.1.0</version>
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
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).
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.
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.
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.
316 A convention of this API is to return JSON responses per
320 http://www.apache.org/licenses/LICENSE-2.0
323 <url>http://www.onap.org</url>
326 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
327 <name>Licensed under the Apache License, Version 2.0</name>
330 <swaggerDirectory>target/generated-sources/</swaggerDirectory>
336 <phase>compile</phase>
338 <goal>generate</goal>
345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-compiler-plugin</artifactId>
347 <version>3.8.0</version>
349 <release>11</release>
353 <artifactId>maven-checkstyle-plugin</artifactId>
356 <id>onap-java-style</id>
358 <consoleOutput>false</consoleOutput>
363 <!-- for Distribution Managment -->
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-site-plugin</artifactId>
367 <version>3.6</version>
370 <groupId>org.apache.maven.wagon</groupId>
371 <artifactId>wagon-webdav-jackrabbit</artifactId>
372 <version>2.10</version>
376 <!-- prevent SNAPSHOT dependencies -->
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-enforcer-plugin</artifactId>
382 <id>enforce-no-snapshots</id>
389 <message>No Snapshots Allowed!</message>
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>
398 </requireReleaseDeps>
406 <groupId>org.jacoco</groupId>
407 <artifactId>jacoco-maven-plugin</artifactId>
410 <id>prepare-agent</id>
412 <goal>prepare-agent</goal>
421 <dataFile>${project.build.directory}/code-coverage/jacoco.exec
423 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut
430 <groupId>org.apache.maven.plugins</groupId>
431 <artifactId>maven-surefire-plugin</artifactId>
432 <version>2.12.4</version>
435 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
437 <!-- <skipTests>true</skipTests> -->
443 <!--This plugin's configuration is used to store Eclipse m2e settings
444 only. It has no influence on the Maven build itself. -->
446 <groupId>org.eclipse.m2e</groupId>
447 <artifactId>lifecycle-mapping</artifactId>
448 <version>1.0.0</version>
450 <lifecycleMappingMetadata>
453 <pluginExecutionFilter>
454 <groupId>org.apache.maven.plugins</groupId>
455 <artifactId>maven-dependency-plugin</artifactId>
456 <versionRange>[2.10,)</versionRange>
458 <goal>copy-dependencies</goal>
460 </pluginExecutionFilter>
466 </lifecycleMappingMetadata>
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-javadoc-plugin</artifactId>
478 <version>2.10.4</version>
480 <failOnError>false</failOnError>
481 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
483 <groupId>org.umlgraph</groupId>
484 <artifactId>umlgraph</artifactId>
485 <version>5.6</version>
487 <additionalparam>-views</additionalparam>
488 <useStandardDocletOptions>true</useStandardDocletOptions>