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