DMAAP-84 also include sonar in pom.xml
[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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <groupId>org.onap.dmaap.dbcapi</groupId>
5   <artifactId>dbcapi</artifactId>
6   <version>${artifact.version}</version>
7   <name>dbcapi</name>
8   <parent>
9     <groupId>org.onap.oparent</groupId>
10     <artifactId>oparent</artifactId>
11     <version>0.1.0</version>
12   </parent>
13   <build>
14     <finalName>dbcapi</finalName>
15     <resources>
16                 <resource>
17                         <directory>src/main/java/org/onap/dmaap/dbcapi/logging</directory>
18                 </resource>
19                 <resource>
20                         <directory>src/main/resources</directory>
21                 </resource>
22         </resources>
23     <plugins>
24 <!--  reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html 
25 -->
26         <plugin>
27     <groupId>com.github.kongchen</groupId>
28     <artifactId>swagger-maven-plugin</artifactId>
29     <version>3.1.5</version>
30     <configuration>
31         <apiSources>
32             <apiSource>
33                 <springmvc>false</springmvc>
34                 <locations>
35                         <location>org.onap.dmaap.dbcapi.resources</location>
36                 </locations>
37                 <schemes>
38                    <scheme>http</scheme>
39                    <scheme>https</scheme>
40                 </schemes>
41                 <host>www.[host]:[port]</host>
42                 <basePath>/webapi</basePath>
43                 <info>
44                     <title>DMaaP Bus Controller REST API</title>
45                     <version>1.1.0</version>
46                     <description>
47 provides an API for OpenDCAE components which need to provision underlying DMaaP technologies (Data Router and Message Router). Primary clients for this API are anticipated to be the OpenDCAE Controller, OpenDCAE Orchestrator, OpenDCAE Inventory and the ECOMP Portal.
48
49 Objects managed by DMaaP are deployed in a dcaeLocation which is a unique identifier for an OpenStack tenant for a dcaeLayer, opendcae-central (aka ecomp) or opendcae-local-ntc (aka edge).
50
51 A dcaeEnvironment (e.g. FTL or prod) has a single DMaaP. A DMaaP is managed by a one or more stateless DMaaP Bus Controller(s), though Bus Controller relies on PGaaS for persistence. Each DMaaP has a single instance of Data Router, which has 1 or more DR_Nodes deployed at each dcaeLocation. DR Clients of type DR_Pub generally publish to a DR_Node that is local to its dcaeLocation. Routing for a Feed is determined by the dcaelocation of its DR_Sub clients.
52
53 A DMaaP may have many Message Router instances. Each instance is deployed as an MR_Cluster. One MR_Cluster is deployed at each dcaeLocation. MR_Clients generally communicate to the MR_Cluster at the same dcaeLocation. Replication of messages between MR_Clusters is accomplished by MR Bridge, which is provioned by DMaaP Bus Controller based on Topic attributes.
54
55 Therefore, the role of DMaaP Bus Controller is to support other DCAE infrastructure components to dynamically provision DMaaP services on behalf of DMaaP clients, and to assist in any management or discovery activity of its clients.
56
57 A convention of this API is to return JSON responses per OpenStack style.
58                     </description>
59                     <termsOfService>
60                         http://www.apache.org/licenses/LICENSE-2.0
61                     </termsOfService>
62                     <contact>
63                         <url>http://www.onap.org</url>
64                     </contact>
65                     <license>
66                         <url>http://www.apache.org/licenses/LICENSE-2.0</url>
67                         <name>Licensed under the Apache License, Version 2.0</name>
68                     </license>
69                 </info>
70                 <swaggerDirectory>target/generated-sources/</swaggerDirectory>
71             </apiSource>
72         </apiSources>
73     </configuration>
74     <executions>
75         <execution>
76             <phase>compile</phase>
77             <goals>
78                 <goal>generate</goal>
79             </goals>
80         </execution>
81     </executions>
82   </plugin>
83  
84     </plugins>
85     <pluginManagement>
86       <plugins>
87         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
88         <plugin>
89           <groupId>org.eclipse.m2e</groupId>
90           <artifactId>lifecycle-mapping</artifactId>
91           <version>1.0.0</version>
92           <configuration>
93             <lifecycleMappingMetadata>
94               <pluginExecutions>
95                 <pluginExecution>
96                   <pluginExecutionFilter>
97                     <groupId>org.apache.maven.plugins</groupId>
98                     <artifactId>maven-dependency-plugin</artifactId>
99                     <versionRange>[2.10,)</versionRange>
100                     <goals>
101                       <goal>copy-dependencies</goal>
102                     </goals>
103                   </pluginExecutionFilter>
104                   <action>
105                     <ignore/>
106                   </action>
107                 </pluginExecution>
108               </pluginExecutions>
109             </lifecycleMappingMetadata>
110           </configuration>
111         </plugin>
112       </plugins>
113     </pluginManagement>
114   </build>
115   <dependencyManagement>
116     <dependencies>
117  
118       <dependency>
119         <groupId>org.glassfish.jersey</groupId>
120         <artifactId>jersey-bom</artifactId>
121         <version>${jersey.version}</version>
122         <type>pom</type>
123         <scope>import</scope>
124       </dependency>
125     </dependencies>
126   </dependencyManagement>
127   <dependencies>
128         <dependency>
129         <groupId>io.swagger</groupId>
130         <artifactId>swagger-core</artifactId>
131         <version>1.5.13</version>
132       </dependency>
133       <dependency>
134         <groupId>io.swagger</groupId>
135         <artifactId>swagger-jersey2-jaxrs</artifactId>
136         <version>1.5.13</version>
137       </dependency>
138        <dependency>
139         <groupId>io.swagger</groupId>
140         <artifactId>swagger-annotations</artifactId>
141         <version>1.5.13</version>
142       </dependency>   
143     <dependency>
144       <groupId>org.glassfish.jersey.containers</groupId>
145       <artifactId>jersey-container-servlet-core</artifactId>
146       <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
147       <!-- artifactId>jersey-container-servlet</artifactId -->
148     </dependency>
149     <dependency>
150       <groupId>org.glassfish.jersey.media</groupId>
151       <artifactId>jersey-media-moxy</artifactId>
152     </dependency>
153     <dependency>
154       <groupId>log4j</groupId>
155       <artifactId>log4j</artifactId>
156       <version>1.2.17</version>
157     </dependency>
158     <dependency>
159       <groupId>org.eclipse.jetty</groupId>
160       <artifactId>jetty-server</artifactId>
161       <version>${jettyVersion}</version>
162     </dependency>
163     <dependency>
164       <groupId>org.eclipse.jetty</groupId>
165       <artifactId>jetty-servlet</artifactId>
166       <version>${jettyVersion}</version>
167       <scope>compile</scope>
168     </dependency>
169     <dependency>
170       <groupId>org.eclipse.jetty</groupId>
171       <artifactId>jetty-servlets</artifactId>
172       <version>${jettyVersion}</version>
173       <scope>compile</scope>
174     </dependency>
175     <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
176     <dependency>
177       <groupId>com.googlecode.json-simple</groupId>
178       <artifactId>json-simple</artifactId>
179       <version>1.1.1</version>
180     </dependency>
181     <dependency>
182       <groupId>commons-codec</groupId>
183       <artifactId>commons-codec</artifactId>
184       <version>1.6</version>
185     </dependency>
186     <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
187     <dependency>
188       <groupId>org.postgresql</groupId>
189       <artifactId>postgresql</artifactId>
190       <version>9.4.1208.jre7</version>
191     </dependency>
192     <dependency>
193         <groupId>com.att.eelf</groupId> 
194         <artifactId>eelf-core</artifactId> 
195         <version>${eelf.version}</version> 
196     </dependency>
197     <dependency>
198         <groupId>org.slf4j</groupId> 
199         <artifactId>slf4j-api</artifactId> 
200         <version>1.7.22</version> 
201     </dependency>
202   </dependencies>
203   <reporting>
204     <plugins>
205       <plugin>
206         <groupId>org.apache.maven.plugins</groupId>
207         <artifactId>maven-javadoc-plugin</artifactId>
208         <version>2.10.4</version>
209         <configuration>
210           <failOnError>false</failOnError>
211           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
212           <docletArtifact>
213             <groupId>org.umlgraph</groupId>
214             <artifactId>umlgraph</artifactId>
215             <version>5.6</version>
216           </docletArtifact>
217           <additionalparam>-views</additionalparam>
218           <useStandardDocletOptions>true</useStandardDocletOptions>
219         </configuration>
220       </plugin>
221     </plugins>
222   </reporting>
223   <properties>
224     <jersey.version>2.16</jersey.version>
225     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
226     <jettyVersion>9.3.7.v20160115</jettyVersion>
227     <eelf.version>0.0.1</eelf.version>
228     <artifact.version>1.0.0-SNAPSHOT</artifact.version>
229                 <!--  SONAR  -->
230                  <jacoco.version>0.7.7.201606060606</jacoco.version>
231             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
232             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
233             <!-- Default Sonar configuration -->
234             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
235             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
236             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
237             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
238   </properties>
239   <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>
240 </project>