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.6.8</swagger.version>
46 <jackson.version>2.14.2</jackson.version>
47 <jersey.version>3.1.1</jersey.version>
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49 <jettyVersion>11.0.14</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>
72 <version>${jersey.version}</version>
75 <groupId>org.glassfish.jersey.containers</groupId>
76 <artifactId>jersey-container-servlet-core</artifactId>
77 <version>${jersey.version}</version>
80 <groupId>org.glassfish.jersey.media</groupId>
81 <artifactId>jersey-media-moxy</artifactId>
82 <version>${jersey.version}</version>
85 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
86 <!-- use this if compatibility issues with jetty artifactId:
87 <artifactId>jersey-test-framework-provider-jetty</artifactId>
88 <version>${jersey.version}</version>
90 <artifactId>jersey-test-framework-provider-jdk-http</artifactId>
91 <version>${jersey.version}</version>
94 <groupId>org.glassfish.jersey.inject</groupId>
95 <artifactId>jersey-hk2</artifactId>
96 <version>${jersey.version}</version>
99 <groupId>org.onap.aaf.authz</groupId>
100 <artifactId>aaf-cadi-aaf</artifactId>
101 <version>2.1.7</version>
102 <classifier>full</classifier>
105 <artifactId>log4j</artifactId>
106 <groupId>log4j</groupId>
111 <groupId>com.fasterxml.jackson.core</groupId>
112 <artifactId>jackson-annotations</artifactId>
113 <version>${jackson.version}</version>
116 <groupId>com.fasterxml.jackson.dataformat</groupId>
117 <artifactId>jackson-dataformat-yaml</artifactId>
118 <version>${jackson.version}</version>
121 <artifactId>snakeyaml</artifactId>
122 <groupId>org.yaml</groupId>
127 <groupId>ch.qos.logback</groupId>
128 <artifactId>logback-core</artifactId>
129 <version>1.2.7</version>
132 <groupId>ch.qos.logback</groupId>
133 <artifactId>logback-classic</artifactId>
134 <version>1.2.3</version>
137 - override this dependency because it utilized a third party
138 - lib called com.google.guava:20.0 which had severe security threat identified.
141 <groupId>com.google.guava</groupId>
142 <artifactId>guava</artifactId>
143 <version>24.1.1-jre</version>
146 <groupId>io.swagger</groupId>
147 <artifactId>swagger-core</artifactId>
148 <version>${swagger.version}</version>
151 <groupId>com.fasterxml.jackson.core</groupId>
152 <artifactId>jackson-databind</artifactId>
157 <groupId>io.swagger</groupId>
158 <artifactId>swagger-jersey2-jaxrs</artifactId>
159 <version>${swagger.version}</version>
162 <artifactId>jersey-common</artifactId>
163 <groupId>org.glassfish.jersey.core</groupId>
168 <groupId>io.swagger</groupId>
169 <artifactId>swagger-annotations</artifactId>
170 <version>${swagger.version}</version>
173 <groupId>org.eclipse.jetty</groupId>
174 <artifactId>jetty-server</artifactId>
175 <version>${jettyVersion}</version>
176 <scope>compile</scope>
179 <groupId>org.eclipse.jetty</groupId>
180 <artifactId>jetty-servlet</artifactId>
181 <version>${jettyVersion}</version>
182 <scope>compile</scope>
185 <groupId>org.eclipse.jetty</groupId>
186 <artifactId>jetty-servlets</artifactId>
187 <version>${jettyVersion}</version>
188 <scope>compile</scope>
191 <groupId>org.eclipse.jetty</groupId>
192 <artifactId>jetty-http</artifactId>
193 <version>${jettyVersion}</version>
194 <scope>compile</scope>
196 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
198 <groupId>com.googlecode.json-simple</groupId>
199 <artifactId>json-simple</artifactId>
200 <version>1.1.1</version>
203 <groupId>commons-codec</groupId>
204 <artifactId>commons-codec</artifactId>
205 <version>1.15</version>
207 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
209 <groupId>org.postgresql</groupId>
210 <artifactId>postgresql</artifactId>
211 <version>42.5.4</version>
214 <groupId>org.slf4j</groupId>
215 <artifactId>slf4j-api</artifactId>
216 <version>1.7.22</version>
219 <!-- use 2.3.1 to avoid this issue: https://github.com/eclipse-ee4j/jaxb-ri/issues/1222 -->
220 <groupId>javax.xml.bind</groupId>
221 <artifactId>jaxb-api</artifactId>
222 <version>2.4.0-b180830.0359</version>
225 <groupId>junit</groupId>
226 <artifactId>junit</artifactId>
227 <version>${junit.version}</version>
231 <groupId>pl.pragmatists</groupId>
232 <artifactId>JUnitParams</artifactId>
233 <version>1.1.0</version>
236 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
238 <groupId>org.mockito</groupId>
239 <artifactId>mockito-core</artifactId>
240 <version>3.9.0</version>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-enforcer-plugin</artifactId>
246 <version>3.0.0-M3</version>
249 <artifactId>commons-io</artifactId>
250 <groupId>commons-io</groupId>
253 <artifactId>maven-compat</artifactId>
254 <groupId>org.apache.maven</groupId>
257 <artifactId>maven-settings</artifactId>
258 <groupId>org.apache.maven</groupId>
261 <artifactId>maven-shared-utils</artifactId>
262 <groupId>org.apache.maven.shared</groupId>
265 <artifactId>bsh</artifactId>
266 <groupId>org.beanshell</groupId>
269 <artifactId>maven-core</artifactId>
270 <groupId>org.apache.maven</groupId>
275 <groupId>com.att.eelf</groupId>
276 <artifactId>eelf-core</artifactId>
277 <version>${eelf.version}</version>
280 <groupId>org.mockito</groupId>
281 <artifactId>mockito-core</artifactId>
284 <groupId>org.powermock</groupId>
285 <artifactId>powermock-module-junit4</artifactId>
288 <groupId>org.powermock</groupId>
289 <artifactId>powermock-api-mockito</artifactId>
295 <finalName>dmaap-bc</finalName>
296 <!-- Copy files to docker-stage to be included in image -->
299 <targetPath>${basedir}/target/docker-stage</targetPath>
300 <directory>${basedir}/src/main/resources/docker</directory>
302 <include>Dockerfile</include>
306 <targetPath>${basedir}${docker-stage.target.path}etc</targetPath>
307 <directory>${basedir}/src/main/resources/misc</directory>
309 <include>logback.xml</include>
310 <include>LocalKey</include>
314 <targetPath>${basedir}${docker-stage.target.path}etc</targetPath>
315 <directory>${multiproject.basedir}</directory>
317 <include>version.properties</include>
321 <targetPath>${basedir}${docker-stage.target.path}misc</targetPath>
322 <directory>${basedir}/src/main/resources/misc</directory>
324 <include>*.tmpl</include>
328 <targetPath>${basedir}${docker-stage.target.path}bin</targetPath>
329 <directory>${basedir}/src/main/resources/misc</directory>
331 <include>dmaapbc</include>
335 <targetPath>${basedir}${docker-stage.target.path}misc</targetPath>
336 <directory>${basedir}/src/main/resources/misc</directory>
338 <include>schema_all.sql</include>
344 <artifactId>maven-assembly-plugin</artifactId>
345 <version>2.4</version>
348 <descriptorRef>jar-with-dependencies</descriptorRef>
350 <outputDirectory>${basedir}/target/docker-stage/opt/app/dmaapbc/lib</outputDirectory>
353 <addClasspath>true</addClasspath>
354 <mainClass>org.onap.dmaap.dbcapi.server.Main</mainClass>
357 <finalName>dmaap-bc.jar</finalName>
358 <appendAssemblyId>false</appendAssemblyId>
362 <id>make-assembly</id>
363 <!-- this is used for inheritance merges -->
364 <phase>package</phase>
365 <!-- bind to the packaging phase -->
373 <artifactId>maven-checkstyle-plugin</artifactId>
376 <id>onap-java-style</id>
378 <consoleOutput>false</consoleOutput>
383 <!-- reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html -->
385 <groupId>com.github.kongchen</groupId>
386 <artifactId>swagger-maven-plugin</artifactId>
387 <version>3.1.5</version>
391 <springmvc>false</springmvc>
393 <location>org.onap.dmaap.dbcapi.resources</location>
396 <scheme>http</scheme>
397 <scheme>https</scheme>
399 <host>www.[host]:[port]</host>
400 <basePath>/webapi</basePath>
402 <title>DMaaP Bus Controller REST API</title>
403 <version>1.1.0</version>
405 provides an API for OpenDCAE components which need to provision
406 underlying DMaaP technologies (Data Router and Message Router).
407 Primary clients for this API are anticipated to be the OpenDCAE
408 Controller, OpenDCAE Orchestrator, OpenDCAE Inventory and the
411 Objects managed by DMaaP are deployed in a dcaeLocation which is
412 a unique identifier for an OpenStack tenant for a dcaeLayer,
413 opendcae-central (aka ecomp) or opendcae-local-ntc (aka edge).
415 A dcaeEnvironment (e.g. FTL or prod) has a single DMaaP. A
416 DMaaP is managed by a one or more stateless DMaaP Bus
417 Controller(s), though Bus Controller relies on PGaaS for
418 persistence. Each DMaaP has a single instance of Data Router,
419 which has 1 or more DR_Nodes deployed at each dcaeLocation. DR
420 Clients of type DR_Pub generally publish to a DR_Node that is
421 local to its dcaeLocation. Routing for a Feed is determined by
422 the dcaelocation of its DR_Sub clients.
424 A DMaaP may have many Message Router instances. Each instance is
425 deployed as an MR_Cluster. One MR_Cluster is deployed at each
426 dcaeLocation. MR_Clients generally communicate to the
427 MR_Cluster at the same dcaeLocation. Replication of messages
428 between MR_Clusters is accomplished by MR Bridge, which is
429 provioned by DMaaP Bus Controller based on Topic attributes.
431 Therefore, the role of DMaaP Bus Controller is to support other
432 DCAE infrastructure components to dynamically provision DMaaP
433 services on behalf of DMaaP clients, and to assist in any
434 management or discovery activity of its clients.
436 A convention of this API is to return JSON responses per
440 http://www.apache.org/licenses/LICENSE-2.0
443 <url>http://www.onap.org</url>
446 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
447 <name>Licensed under the Apache License, Version 2.0</name>
450 <swaggerDirectory>target/generated-sources/</swaggerDirectory>
456 <phase>compile</phase>
458 <goal>generate</goal>
469 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
470 <skipTests>false</skipTests>
475 <groupId>org.codehaus.gmaven</groupId>
476 <artifactId>gmaven-plugin</artifactId>
479 <groupId>io.fabric8</groupId>
480 <artifactId>docker-maven-plugin</artifactId>
484 <name>${dmaapbc.image.name}</name>
486 <cleanup>try</cleanup>
487 <noCache>true</noCache>
488 <optimise>true</optimise>
489 <contextDir>${basedir}/target/docker-stage</contextDir>
490 <dockerFile>Dockerfile</dockerFile>
492 <tag>${dockertag1}</tag>
493 <tag>${dockertag2}</tag>
501 <id>generate-images</id>
502 <phase>install</phase>
509 <phase>deploy</phase>
523 <groupId>org.apache.maven.plugins</groupId>
524 <artifactId>maven-javadoc-plugin</artifactId>
525 <version>2.10.4</version>
527 <failOnError>false</failOnError>
528 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
530 <groupId>org.umlgraph</groupId>
531 <artifactId>umlgraph</artifactId>
532 <version>5.6</version>
534 <additionalparam>-views</additionalparam>
535 <useStandardDocletOptions>true</useStandardDocletOptions>
540 <distributionManagement>
543 <url>dav:${nexusproxy}${sitePath}</url>
545 </distributionManagement>