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">
25 <modelVersion>4.0.0</modelVersion>
26 <artifactId>dmaap-bc</artifactId>
27 <version>${revision}</version>
29 <packaging>jar</packaging>
31 <groupId>org.onap.dmaap.buscontroller</groupId>
32 <artifactId>parent</artifactId>
33 <version>${revision}</version>
34 <relativePath>../pom.xml</relativePath>
36 <description>Data Movement as a Platform (DMaaP) Bus Controller provides a REST API for other
37 DCAE infrastructure components to provision DMaaP resources. A DMaaP resource is a Data
38 Router Feed or a Message Router Topic, and their associated publishers and subscribers.
41 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}
43 <eelf.version>1.0.0</eelf.version>
44 <dmaapbc.image.name>${docker.image.root}${project.artifactId}</dmaapbc.image.name>
45 <swagger.version>1.5.19</swagger.version>
46 <jackson.version>2.9.5</jackson.version>
47 <jersey.version>2.29</jersey.version>
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49 <jettyVersion>9.4.40.v20210413</jettyVersion>
50 <eelf.version>1.0.0</eelf.version>
51 <junit.version>4.12</junit.version>
52 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
53 <docker-stage.target.path>/target/docker-stage/opt/app/dmaapbc/</docker-stage.target.path>
56 <dependencyManagement>
59 <groupId>org.glassfish.jersey</groupId>
60 <artifactId>jersey-bom</artifactId>
61 <version>${jersey.version}</version>
66 </dependencyManagement>
70 <groupId>org.glassfish.jersey.media</groupId>
71 <artifactId>jersey-media-json-jackson</artifactId>
74 <groupId>org.glassfish.jersey.containers</groupId>
75 <artifactId>jersey-container-servlet-core</artifactId>
78 <groupId>org.glassfish.jersey.media</groupId>
79 <artifactId>jersey-media-moxy</artifactId>
82 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
83 <!-- use this if compatibility issues with jetty artifactId:
84 <artifactId>jersey-test-framework-provider-jetty</artifactId>
85 <version>${jersey.version}</version>
87 <artifactId>jersey-test-framework-provider-jdk-http</artifactId>
88 <version>2.29.1</version>
91 <groupId>org.glassfish.jersey.inject</groupId>
92 <artifactId>jersey-hk2</artifactId>
93 <version>2.29.1</version>
96 <groupId>org.onap.aaf.authz</groupId>
97 <artifactId>aaf-cadi-aaf</artifactId>
98 <version>2.1.7</version>
99 <classifier>full</classifier>
102 <groupId>com.fasterxml.jackson.core</groupId>
103 <artifactId>jackson-annotations</artifactId>
104 <version>${jackson.version}</version>
107 <groupId>com.fasterxml.jackson.dataformat</groupId>
108 <artifactId>jackson-dataformat-yaml</artifactId>
109 <version>${jackson.version}</version>
112 <groupId>ch.qos.logback</groupId>
113 <artifactId>logback-core</artifactId>
114 <version>1.2.3</version>
117 <groupId>ch.qos.logback</groupId>
118 <artifactId>logback-classic</artifactId>
119 <version>1.2.3</version>
122 - override this dependency because it utilized a third party
123 - lib called com.google.guava:20.0 which had severe security threat identified.
126 <groupId>com.google.guava</groupId>
127 <artifactId>guava</artifactId>
128 <version>24.1.1-jre</version>
131 <groupId>io.swagger</groupId>
132 <artifactId>swagger-core</artifactId>
133 <version>${swagger.version}</version>
136 <groupId>com.fasterxml.jackson.core</groupId>
137 <artifactId>jackson-databind</artifactId>
142 <groupId>io.swagger</groupId>
143 <artifactId>swagger-jersey2-jaxrs</artifactId>
144 <version>${swagger.version}</version>
147 <groupId>io.swagger</groupId>
148 <artifactId>swagger-annotations</artifactId>
149 <version>${swagger.version}</version>
152 <groupId>org.eclipse.jetty</groupId>
153 <artifactId>jetty-server</artifactId>
154 <version>${jettyVersion}</version>
155 <scope>compile</scope>
158 <groupId>org.eclipse.jetty</groupId>
159 <artifactId>jetty-servlet</artifactId>
160 <version>${jettyVersion}</version>
161 <scope>compile</scope>
164 <groupId>org.eclipse.jetty</groupId>
165 <artifactId>jetty-servlets</artifactId>
166 <version>${jettyVersion}</version>
167 <scope>compile</scope>
170 <groupId>org.eclipse.jetty</groupId>
171 <artifactId>jetty-http</artifactId>
172 <version>${jettyVersion}</version>
173 <scope>compile</scope>
175 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
177 <groupId>com.googlecode.json-simple</groupId>
178 <artifactId>json-simple</artifactId>
179 <version>1.1.1</version>
182 <groupId>commons-codec</groupId>
183 <artifactId>commons-codec</artifactId>
184 <version>1.15</version>
186 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
188 <groupId>org.postgresql</groupId>
189 <artifactId>postgresql</artifactId>
190 <version>42.2.14</version>
193 <groupId>org.slf4j</groupId>
194 <artifactId>slf4j-api</artifactId>
195 <version>1.7.22</version>
198 <!-- use 2.3.1 to avoid this issue: https://github.com/eclipse-ee4j/jaxb-ri/issues/1222 -->
199 <groupId>javax.xml.bind</groupId>
200 <artifactId>jaxb-api</artifactId>
201 <version>2.3.1</version>
204 <groupId>junit</groupId>
205 <artifactId>junit</artifactId>
206 <version>${junit.version}</version>
210 <groupId>pl.pragmatists</groupId>
211 <artifactId>JUnitParams</artifactId>
212 <version>1.1.0</version>
215 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
217 <groupId>org.mockito</groupId>
218 <artifactId>mockito-core</artifactId>
219 <version>3.9.0</version>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-enforcer-plugin</artifactId>
225 <version>3.0.0-M3</version>
228 <groupId>com.att.eelf</groupId>
229 <artifactId>eelf-core</artifactId>
230 <version>${eelf.version}</version>
233 <groupId>org.mockito</groupId>
234 <artifactId>mockito-core</artifactId>
237 <groupId>org.powermock</groupId>
238 <artifactId>powermock-module-junit4</artifactId>
241 <groupId>org.powermock</groupId>
242 <artifactId>powermock-api-mockito</artifactId>
248 <finalName>dmaap-bc</finalName>
249 <!-- Copy files to docker-stage to be included in image -->
252 <targetPath>${basedir}/target/docker-stage</targetPath>
253 <directory>${basedir}/src/main/resources/docker</directory>
255 <include>Dockerfile</include>
259 <targetPath>${basedir}${docker-stage.target.path}etc</targetPath>
260 <directory>${basedir}/src/main/resources/misc</directory>
262 <include>logback.xml</include>
263 <include>LocalKey</include>
267 <targetPath>${basedir}${docker-stage.target.path}etc</targetPath>
268 <directory>${multiproject.basedir}</directory>
270 <include>version.properties</include>
274 <targetPath>${basedir}${docker-stage.target.path}misc</targetPath>
275 <directory>${basedir}/src/main/resources/misc</directory>
277 <include>*.tmpl</include>
281 <targetPath>${basedir}${docker-stage.target.path}bin</targetPath>
282 <directory>${basedir}/src/main/resources/misc</directory>
284 <include>dmaapbc</include>
288 <targetPath>${basedir}${docker-stage.target.path}misc</targetPath>
289 <directory>${basedir}/src/main/resources/misc</directory>
291 <include>schema_all.sql</include>
297 <artifactId>maven-assembly-plugin</artifactId>
298 <version>2.4</version>
301 <descriptorRef>jar-with-dependencies</descriptorRef>
303 <outputDirectory>${basedir}/target/docker-stage/opt/app/dmaapbc/lib</outputDirectory>
306 <addClasspath>true</addClasspath>
307 <mainClass>org.onap.dmaap.dbcapi.server.Main</mainClass>
310 <finalName>dmaap-bc.jar</finalName>
311 <appendAssemblyId>false</appendAssemblyId>
315 <id>make-assembly</id>
316 <!-- this is used for inheritance merges -->
317 <phase>package</phase>
318 <!-- bind to the packaging phase -->
326 <artifactId>maven-checkstyle-plugin</artifactId>
329 <id>onap-java-style</id>
331 <consoleOutput>false</consoleOutput>
336 <!-- reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html -->
338 <groupId>com.github.kongchen</groupId>
339 <artifactId>swagger-maven-plugin</artifactId>
340 <version>3.1.5</version>
344 <springmvc>false</springmvc>
346 <location>org.onap.dmaap.dbcapi.resources</location>
349 <scheme>http</scheme>
350 <scheme>https</scheme>
352 <host>www.[host]:[port]</host>
353 <basePath>/webapi</basePath>
355 <title>DMaaP Bus Controller REST API</title>
356 <version>1.1.0</version>
358 provides an API for OpenDCAE components which need to provision
359 underlying DMaaP technologies (Data Router and Message Router).
360 Primary clients for this API are anticipated to be the OpenDCAE
361 Controller, OpenDCAE Orchestrator, OpenDCAE Inventory and the
364 Objects managed by DMaaP are deployed in a dcaeLocation which is
365 a unique identifier for an OpenStack tenant for a dcaeLayer,
366 opendcae-central (aka ecomp) or opendcae-local-ntc (aka edge).
368 A dcaeEnvironment (e.g. FTL or prod) has a single DMaaP. A
369 DMaaP is managed by a one or more stateless DMaaP Bus
370 Controller(s), though Bus Controller relies on PGaaS for
371 persistence. Each DMaaP has a single instance of Data Router,
372 which has 1 or more DR_Nodes deployed at each dcaeLocation. DR
373 Clients of type DR_Pub generally publish to a DR_Node that is
374 local to its dcaeLocation. Routing for a Feed is determined by
375 the dcaelocation of its DR_Sub clients.
377 A DMaaP may have many Message Router instances. Each instance is
378 deployed as an MR_Cluster. One MR_Cluster is deployed at each
379 dcaeLocation. MR_Clients generally communicate to the
380 MR_Cluster at the same dcaeLocation. Replication of messages
381 between MR_Clusters is accomplished by MR Bridge, which is
382 provioned by DMaaP Bus Controller based on Topic attributes.
384 Therefore, the role of DMaaP Bus Controller is to support other
385 DCAE infrastructure components to dynamically provision DMaaP
386 services on behalf of DMaaP clients, and to assist in any
387 management or discovery activity of its clients.
389 A convention of this API is to return JSON responses per
393 http://www.apache.org/licenses/LICENSE-2.0
396 <url>http://www.onap.org</url>
399 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
400 <name>Licensed under the Apache License, Version 2.0</name>
403 <swaggerDirectory>target/generated-sources/</swaggerDirectory>
409 <phase>compile</phase>
411 <goal>generate</goal>
422 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
423 <skipTests>false</skipTests>
428 <groupId>org.codehaus.gmaven</groupId>
429 <artifactId>gmaven-plugin</artifactId>
432 <groupId>io.fabric8</groupId>
433 <artifactId>docker-maven-plugin</artifactId>
437 <name>${dmaapbc.image.name}</name>
439 <cleanup>try</cleanup>
440 <noCache>true</noCache>
441 <optimise>true</optimise>
442 <contextDir>${basedir}/target/docker-stage</contextDir>
443 <dockerFile>Dockerfile</dockerFile>
445 <tag>${dockertag1}</tag>
446 <tag>${dockertag2}</tag>
454 <id>generate-images</id>
455 <phase>install</phase>
462 <phase>deploy</phase>
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>
493 <distributionManagement>
496 <url>dav:${nexusproxy}${sitePath}</url>
498 </distributionManagement>