Merge "changes in DR_PubResourceTest"
[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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23         <modelVersion>4.0.0</modelVersion>
24         <groupId>org.onap.dmaap.dbcapi</groupId>
25         <artifactId>dbcapi</artifactId>
26         <version>${artifact.version}</version>
27         <name>dmaap-dbcapi</name>
28         <parent>
29                 <groupId>org.onap.oparent</groupId>
30                 <artifactId>oparent</artifactId>
31                 <version>1.2.2</version>
32                 <relativePath/>
33         </parent>
34         <build>
35                 <finalName>dbcapi</finalName>
36                 <resources>
37                         <resource>
38                                 <directory>src/main/java/org/onap/dmaap/dbcapi/logging</directory>
39                         </resource>
40                         <resource>
41                                 <directory>src/main/resources</directory>
42                         </resource>
43                 </resources>
44                 <plugins>
45                         <!-- reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html -->
46                         <plugin>
47                                 <groupId>com.github.kongchen</groupId>
48                                 <artifactId>swagger-maven-plugin</artifactId>
49                                 <version>3.1.5</version>
50                                 <configuration>
51                                         <apiSources>
52                                                 <apiSource>
53                                                         <springmvc>false</springmvc>
54                                                         <locations>
55                                                                 <location>org.onap.dmaap.dbcapi.resources</location>
56                                                         </locations>
57                                                         <schemes>
58                                                                 <scheme>http</scheme>
59                                                                 <scheme>https</scheme>
60                                                         </schemes>
61                                                         <host>www.[host]:[port]</host>
62                                                         <basePath>/webapi</basePath>
63                                                         <info>
64                                                                 <title>DMaaP Bus Controller REST API</title>
65                                                                 <version>1.1.0</version>
66                                                                 <description>
67                                                                         provides an API for OpenDCAE components which need to provision
68                                                                         underlying DMaaP technologies (Data Router and Message Router).
69                                                                         Primary clients for this API are anticipated to be the OpenDCAE
70                                                                         Controller, OpenDCAE Orchestrator, OpenDCAE Inventory and the
71                                                                         ECOMP Portal.
72
73                                                                         Objects managed by DMaaP are deployed in a dcaeLocation which is a
74                                                                         unique identifier for an OpenStack tenant for a dcaeLayer,
75                                                                         opendcae-central (aka ecomp) or opendcae-local-ntc (aka edge).
76
77                                                                         A dcaeEnvironment (e.g. FTL or prod) has a single DMaaP. A
78                                                                         DMaaP is managed by a one or more stateless DMaaP Bus
79                                                                         Controller(s), though Bus Controller relies on PGaaS for
80                                                                         persistence. Each DMaaP has a single instance of Data Router,
81                                                                         which has 1 or more DR_Nodes deployed at each dcaeLocation. DR
82                                                                         Clients of type DR_Pub generally publish to a DR_Node that is
83                                                                         local to its dcaeLocation. Routing for a Feed is determined by
84                                                                         the dcaelocation of its DR_Sub clients.
85
86                                                                         A DMaaP may have many Message Router instances. Each instance is
87                                                                         deployed as an MR_Cluster. One MR_Cluster is deployed at each
88                                                                         dcaeLocation. MR_Clients generally communicate to the
89                                                                         MR_Cluster at the same dcaeLocation. Replication of messages
90                                                                         between MR_Clusters is accomplished by MR Bridge, which is
91                                                                         provioned by DMaaP Bus Controller based on Topic attributes.
92
93                                                                         Therefore, the role of DMaaP Bus Controller is to support other
94                                                                         DCAE infrastructure components to dynamically provision DMaaP
95                                                                         services on behalf of DMaaP clients, and to assist in any
96                                                                         management or discovery activity of its clients.
97
98                                                                         A convention of this API is to return JSON responses per
99                                                                         OpenStack style.
100                                                                 </description>
101                                                                 <termsOfService>
102                                                                         http://www.apache.org/licenses/LICENSE-2.0
103                                                                 </termsOfService>
104                                                                 <contact>
105                                                                         <url>http://www.onap.org</url>
106                                                                 </contact>
107                                                                 <license>
108                                                                         <url>http://www.apache.org/licenses/LICENSE-2.0</url>
109                                                                         <name>Licensed under the Apache License, Version 2.0</name>
110                                                                 </license>
111                                                         </info>
112                                                         <swaggerDirectory>target/generated-sources/</swaggerDirectory>
113                                                 </apiSource>
114                                         </apiSources>
115                                 </configuration>
116                                 <executions>
117                                         <execution>
118                                                 <phase>compile</phase>
119                                                 <goals>
120                                                         <goal>generate</goal>
121                                                 </goals>
122                                         </execution>
123                                 </executions>
124                         </plugin>
125
126                         <!-- for Staging -->
127             <plugin>
128                 <groupId>org.sonatype.plugins</groupId>
129                 <artifactId>nexus-staging-maven-plugin</artifactId>
130                 <version>1.6.7</version>
131                 <extensions>true</extensions>
132                 <configuration>
133                     <serverId>ecomp-staging</serverId>
134                     <nexusUrl>${nexusproxy}</nexusUrl>
135                     <stagingProfileId>176c31dfe190a</stagingProfileId>
136                 </configuration>
137             </plugin>
138
139
140                 <!-- for Distribution Managment -->
141                 <plugin>
142                   <groupId>org.apache.maven.plugins</groupId>
143                   <artifactId>maven-site-plugin</artifactId>
144                   <version>3.6</version>
145                   <dependencies>
146                         <dependency>
147                           <groupId>org.apache.maven.wagon</groupId>
148                           <artifactId>wagon-webdav-jackrabbit</artifactId>
149                           <version>2.10</version>
150                         </dependency>
151                   </dependencies>
152                 </plugin>
153
154                 <!-- prevent SNAPSHOT dependencies -->
155                 <plugin>
156                         <groupId>org.apache.maven.plugins</groupId>
157                         <artifactId>maven-enforcer-plugin</artifactId>
158                         <executions>
159                                 <execution>
160                                         <id>enforce-no-snapshots</id>
161                                         <goals>
162                                                 <goal>enforce</goal>
163                                         </goals>
164                                         <configuration>
165                                                 <rules>
166                                                         <requireReleaseDeps>
167                                                                 <message>No Snapshots Allowed!</message>
168                                                                 <excludes>
169                                                                         <exclude>org.onap.aaf.authz:aaf-cadi-client</exclude>
170                                                                         <exclude>org.onap.aaf.authz:aaf-misc-env</exclude>
171                                                                         <exclude>org.onap.aaf.authz:aaf-cadi-aaf</exclude>
172                                                                         <exclude>org.onap.aaf.authz:aaf-auth-client</exclude>
173                                                                         <exclude>org.onap.aaf.authz:aaf-cadi-core</exclude>
174                                                                         <exclude>org.onap.aaf.authz:aaf-misc-rosetta</exclude>
175                                                                 </excludes>
176                                                         </requireReleaseDeps>
177                                                 </rules>
178                                                 <fail>true</fail>
179                                         </configuration>
180                                 </execution>
181                         </executions>
182                 </plugin>
183
184                 </plugins>
185                 <pluginManagement>
186                         <plugins>
187                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
188                                         only. It has no influence on the Maven build itself. -->
189                                 <plugin>
190                                         <groupId>org.eclipse.m2e</groupId>
191                                         <artifactId>lifecycle-mapping</artifactId>
192                                         <version>1.0.0</version>
193                                         <configuration>
194                                                 <lifecycleMappingMetadata>
195                                                         <pluginExecutions>
196                                                                 <pluginExecution>
197                                                                         <pluginExecutionFilter>
198                                                                                 <groupId>org.apache.maven.plugins</groupId>
199                                                                                 <artifactId>maven-dependency-plugin</artifactId>
200                                                                                 <versionRange>[2.10,)</versionRange>
201                                                                                 <goals>
202                                                                                         <goal>copy-dependencies</goal>
203                                                                                 </goals>
204                                                                         </pluginExecutionFilter>
205                                                                         <action>
206                                                                                 <ignore/>
207                                                                         </action>
208                                                                 </pluginExecution>
209                                                         </pluginExecutions>
210                                                 </lifecycleMappingMetadata>
211                                         </configuration>
212                                 </plugin>
213                         </plugins>
214                 </pluginManagement>
215         </build>
216         <dependencyManagement>
217                 <dependencies>
218                         <dependency>
219                                 <groupId>org.glassfish.jersey</groupId>
220                                 <artifactId>jersey-bom</artifactId>
221                                 <version>${jersey.version}</version>
222                                 <type>pom</type>
223                                 <scope>import</scope>
224                         </dependency>
225                 </dependencies>
226         </dependencyManagement>
227         <dependencies>
228         <dependency>
229                         <groupId>org.onap.aaf.authz</groupId>
230                         <artifactId>aaf-cadi-aaf</artifactId>
231                         <version>2.1.7</version>
232             <classifier>full</classifier>
233         </dependency>
234                 <dependency>
235                         <groupId>com.fasterxml.jackson.core</groupId>
236                         <artifactId>jackson-annotations</artifactId>
237                         <version>${jackson.version}</version>
238                 </dependency>
239                 <dependency>
240                         <groupId>com.fasterxml.jackson.dataformat</groupId>
241                         <artifactId>jackson-dataformat-yaml</artifactId>
242                         <version>${jackson.version}</version>
243                 </dependency>
244                 <dependency>
245                         <groupId>ch.qos.logback</groupId>
246                         <artifactId>logback-core</artifactId>
247                         <version>1.2.3</version>
248                 </dependency>
249                 <dependency>
250                         <groupId>ch.qos.logback</groupId>
251                         <artifactId>logback-classic</artifactId>
252                         <version>1.2.3</version>
253                 </dependency>
254 <!-- DMAAP-656:
255    - override this dependency because it utilized a third party
256    - lib called com.google.guava:20.0 which had severe security threat identified.
257  -->
258                 <dependency>
259                         <groupId>com.google.guava</groupId>
260                         <artifactId>guava</artifactId>
261                         <version>24.1.1-jre</version>
262                 </dependency>
263                 <dependency>
264                         <groupId>io.swagger</groupId>
265                         <artifactId>swagger-core</artifactId>
266                         <version>${swagger.version}</version>
267                 </dependency>
268                 <dependency>
269                         <groupId>io.swagger</groupId>
270                         <artifactId>swagger-jersey2-jaxrs</artifactId>
271                         <version>${swagger.version}</version>
272                 </dependency>
273                 <dependency>
274                         <groupId>io.swagger</groupId>
275                         <artifactId>swagger-annotations</artifactId>
276                         <version>${swagger.version}</version>
277                 </dependency>
278                 <dependency>
279                         <groupId>org.glassfish.jersey.containers</groupId>
280                         <artifactId>jersey-container-servlet-core</artifactId>
281                         <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
282                         <!-- artifactId>jersey-container-servlet</artifactId -->
283                 </dependency>
284                 <dependency>
285                         <groupId>org.glassfish.jersey.media</groupId>
286                         <artifactId>jersey-media-moxy</artifactId>
287                 </dependency>
288                 <dependency>
289                         <groupId>log4j</groupId>
290                         <artifactId>log4j</artifactId>
291                         <version>1.2.17</version>
292                 </dependency>
293                 <dependency>
294                         <groupId>org.eclipse.jetty</groupId>
295                         <artifactId>jetty-server</artifactId>
296                         <version>${jettyVersion}</version>
297                 </dependency>
298                 <dependency>
299                         <groupId>org.eclipse.jetty</groupId>
300                         <artifactId>jetty-servlet</artifactId>
301                         <version>${jettyVersion}</version>
302                         <scope>compile</scope>
303                 </dependency>
304                 <dependency>
305                         <groupId>org.eclipse.jetty</groupId>
306                         <artifactId>jetty-servlets</artifactId>
307                         <version>${jettyVersion}</version>
308                         <scope>compile</scope>
309                 </dependency>
310                 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
311                 <dependency>
312                         <groupId>com.googlecode.json-simple</groupId>
313                         <artifactId>json-simple</artifactId>
314                         <version>1.1.1</version>
315                 </dependency>
316                 <dependency>
317                         <groupId>commons-codec</groupId>
318                         <artifactId>commons-codec</artifactId>
319                         <version>1.11</version>
320                 </dependency>
321                 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
322                 <dependency>
323                         <groupId>org.postgresql</groupId>
324                         <artifactId>postgresql</artifactId>
325                         <version>42.2.5</version>
326                 </dependency>
327                 <dependency>
328                         <groupId>com.att.eelf</groupId>
329                         <artifactId>eelf-core</artifactId>
330                         <version>${eelf.version}</version>
331                 </dependency>
332                 <dependency>
333                         <groupId>org.slf4j</groupId>
334                         <artifactId>slf4j-api</artifactId>
335                         <version>1.7.22</version>
336                 </dependency>
337                 <dependency>
338                         <groupId>org.glassfish.jersey.test-framework.providers</groupId>
339                         <!-- use this if compatibility issues with jetty artifactId:
340                         <artifactId>jersey-test-framework-provider-jetty</artifactId>
341                 <version>${jersey.version}</version>
342                         -->
343                         <artifactId>jersey-test-framework-provider-jdk-http</artifactId>
344                 <version>2.22.1</version>
345                 </dependency>
346                 <dependency>
347                 <groupId>org.glassfish.jersey.inject</groupId>
348                 <artifactId>jersey-hk2</artifactId>
349                 </dependency>
350     <dependency>
351       <groupId>pl.pragmatists</groupId>
352       <artifactId>JUnitParams</artifactId>
353       <version>1.1.0</version>
354       <scope>test</scope>
355     </dependency>
356   </dependencies>
357         <reporting>
358                 <plugins>
359                         <plugin>
360                                 <groupId>org.apache.maven.plugins</groupId>
361                                 <artifactId>maven-javadoc-plugin</artifactId>
362                                 <version>2.10.4</version>
363                                 <configuration>
364                                         <failOnError>false</failOnError>
365                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
366                                         <docletArtifact>
367                                                 <groupId>org.umlgraph</groupId>
368                                                 <artifactId>umlgraph</artifactId>
369                                                 <version>5.6</version>
370                                         </docletArtifact>
371                                         <additionalparam>-views</additionalparam>
372                                         <useStandardDocletOptions>true</useStandardDocletOptions>
373                                 </configuration>
374                         </plugin>
375                 </plugins>
376         </reporting>
377         <distributionManagement>
378                 <site>
379                         <id>ecomp-site</id>
380                         <url>dav:${nexusproxy}${sitePath}</url>
381                 </site>
382         </distributionManagement>
383         <properties>
384                 <swagger.version>1.5.19</swagger.version>
385             <jackson.version>2.9.5</jackson.version>
386                 <jersey.version>2.26</jersey.version>
387                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
388                 <jettyVersion>9.4.12.RC2</jettyVersion> 
389                 <eelf.version>1.0.0</eelf.version>
390                 <artifact.version>1.0.25-SNAPSHOT</artifact.version>
391                 <!-- SONAR -->
392                 <jacoco.version>0.7.7.201606060606</jacoco.version>
393                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
394                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
395                 <!-- Default Sonar configuration -->
396                 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
397                 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
398                 <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
399                         below -->
400                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
401
402                 <!-- for Distribution Management -->
403                 <sitePath>/content/sites/site/org/onap/dmaap/buscontroller/${artifact.version}</sitePath>
404                 <nexusproxy>https://nexus.onap.org</nexusproxy>
405         </properties>
406         <description>Data Movement as a Platform (DMaaP) Bus Controller provides a REST API for other DCAE infrastructure components to provision DMaaP resources.  A DMaaP resource is a Data Router Feed or a Message Router Topic, and their associated publishers and subscribers.</description>
407 </project>