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 <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>
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>
168 <groupId>org.eclipse.jetty</groupId>
169 <artifactId>jetty-servlet</artifactId>
170 <version>${jettyVersion}</version>
171 <scope>compile</scope>
174 <groupId>org.eclipse.jetty</groupId>
175 <artifactId>jetty-servlets</artifactId>
176 <version>${jettyVersion}</version>
177 <scope>compile</scope>
179 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
181 <groupId>com.googlecode.json-simple</groupId>
182 <artifactId>json-simple</artifactId>
183 <version>1.1.1</version>
186 <groupId>commons-codec</groupId>
187 <artifactId>commons-codec</artifactId>
188 <version>1.15</version>
190 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
192 <groupId>org.postgresql</groupId>
193 <artifactId>postgresql</artifactId>
194 <version>42.2.14</version>
197 <groupId>com.att.eelf</groupId>
198 <artifactId>eelf-core</artifactId>
199 <version>${eelf.version}</version>
202 <groupId>org.slf4j</groupId>
203 <artifactId>slf4j-api</artifactId>
204 <version>1.7.22</version>
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>
212 <artifactId>jersey-test-framework-provider-jdk-http</artifactId>
213 <version>2.29.1</version>
216 <groupId>org.glassfish.jersey.inject</groupId>
217 <artifactId>jersey-hk2</artifactId>
218 <version>2.29.1</version>
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>
227 <groupId>javax.activation</groupId>
228 <artifactId>javax.activation-api</artifactId>
229 <version>1.2.0</version>
233 <groupId>junit</groupId>
234 <artifactId>junit</artifactId>
235 <version>${junit.version}</version>
239 <groupId>pl.pragmatists</groupId>
240 <artifactId>JUnitParams</artifactId>
241 <version>1.1.0</version>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-enforcer-plugin</artifactId>
247 <version>3.0.0-M3</version>
252 <finalName>dbcapi</finalName>
255 <directory>src/main/java/org/onap/dmaap/dbcapi/logging</directory>
258 <directory>src/main/resources</directory>
262 <!-- reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html -->
264 <groupId>com.github.kongchen</groupId>
265 <artifactId>swagger-maven-plugin</artifactId>
266 <version>3.1.5</version>
270 <springmvc>false</springmvc>
272 <location>org.onap.dmaap.dbcapi.resources</location>
275 <scheme>http</scheme>
276 <scheme>https</scheme>
278 <host>www.[host]:[port]</host>
279 <basePath>/webapi</basePath>
281 <title>DMaaP Bus Controller REST API</title>
282 <version>1.1.0</version>
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
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).
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.
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.
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.
315 A convention of this API is to return JSON responses per
319 http://www.apache.org/licenses/LICENSE-2.0
322 <url>http://www.onap.org</url>
325 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
326 <name>Licensed under the Apache License, Version 2.0</name>
329 <swaggerDirectory>target/generated-sources/</swaggerDirectory>
335 <phase>compile</phase>
337 <goal>generate</goal>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-compiler-plugin</artifactId>
346 <version>3.8.0</version>
348 <release>11</release>
352 <artifactId>maven-checkstyle-plugin</artifactId>
355 <id>onap-java-style</id>
357 <consoleOutput>false</consoleOutput>
362 <!-- for Distribution Managment -->
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-site-plugin</artifactId>
366 <version>3.6</version>
369 <groupId>org.apache.maven.wagon</groupId>
370 <artifactId>wagon-webdav-jackrabbit</artifactId>
371 <version>2.10</version>
375 <!-- prevent SNAPSHOT dependencies -->
377 <groupId>org.apache.maven.plugins</groupId>
378 <artifactId>maven-enforcer-plugin</artifactId>
381 <id>enforce-no-snapshots</id>
388 <message>No Snapshots Allowed!</message>
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>
397 </requireReleaseDeps>
405 <groupId>org.jacoco</groupId>
406 <artifactId>jacoco-maven-plugin</artifactId>
409 <id>prepare-agent</id>
411 <goal>prepare-agent</goal>
420 <dataFile>${project.build.directory}/code-coverage/jacoco.exec
422 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut
429 <groupId>org.apache.maven.plugins</groupId>
430 <artifactId>maven-surefire-plugin</artifactId>
431 <version>2.12.4</version>
434 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
436 <!-- <skipTests>true</skipTests> -->
442 <!--This plugin's configuration is used to store Eclipse m2e settings
443 only. It has no influence on the Maven build itself. -->
445 <groupId>org.eclipse.m2e</groupId>
446 <artifactId>lifecycle-mapping</artifactId>
447 <version>1.0.0</version>
449 <lifecycleMappingMetadata>
452 <pluginExecutionFilter>
453 <groupId>org.apache.maven.plugins</groupId>
454 <artifactId>maven-dependency-plugin</artifactId>
455 <versionRange>[2.10,)</versionRange>
457 <goal>copy-dependencies</goal>
459 </pluginExecutionFilter>
465 </lifecycleMappingMetadata>
475 <groupId>org.apache.maven.plugins</groupId>
476 <artifactId>maven-javadoc-plugin</artifactId>
477 <version>2.10.4</version>
479 <failOnError>false</failOnError>
480 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
482 <groupId>org.umlgraph</groupId>
483 <artifactId>umlgraph</artifactId>
484 <version>5.6</version>
486 <additionalparam>-views</additionalparam>
487 <useStandardDocletOptions>true</useStandardDocletOptions>