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