DMAAP-83 Initial code import
[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   <distributionManagement>
9     <repository>
10       <id>ecomp-releases</id>
11       <name>Open eCOMP Release Repository</name>
12       <url>${nexusproxy}/${releases.path}</url>
13     </repository>
14     <snapshotRepository>
15       <id>ecomp-snapshots</id>
16       <name>Open eCOMP Snapshot Repository</name>
17         <url>${nexusproxy}/${snapshots.path}</url>
18     </snapshotRepository>
19     <site>
20       <id>ecomp-site</id>
21       <url>dav:${nexusproxy}/content/sites/site/org/onap/dmaap/dbcapi/${project.artifactId}/${project.version}/</url>
22     </site>
23   </distributionManagement>
24   <pluginRepositories>
25     <pluginRepository>
26       <id>central</id>
27       <url>http://repo1.maven.org/maven2</url>
28     </pluginRepository>
29   </pluginRepositories>
30   <build>
31     <finalName>dbcapi</finalName>
32     <resources>
33                 <resource>
34                         <directory>src/main/java/org/onap/dmaap/dbcapi/logging</directory>
35                 </resource>
36                 <resource>
37                         <directory>src/main/resources</directory>
38                 </resource>
39         </resources>
40     <plugins>
41       <plugin>
42         <groupId>org.apache.maven.plugins</groupId>
43         <artifactId>maven-compiler-plugin</artifactId>
44         <version>2.5.1</version>
45         <inherited>true</inherited>
46         <configuration>
47           <source>1.7</source>
48           <target>1.7</target>
49         </configuration>
50       </plugin>
51       <plugin>
52         <groupId>org.apache.maven.plugins</groupId>
53         <artifactId>maven-deploy-plugin</artifactId>
54         <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
55         <configuration>
56           <skip/>
57         </configuration>
58       </plugin>
59       <plugin>
60         <groupId>org.apache.maven.plugins</groupId>
61         <artifactId>maven-site-plugin</artifactId>
62         <version>3.6</version>
63         <dependencies>
64           <dependency>
65             <groupId>org.apache.maven.wagon</groupId>
66             <artifactId>wagon-webdav-jackrabbit</artifactId>
67             <version>2.10</version>
68           </dependency>
69         </dependencies>
70       </plugin>
71       <plugin>
72         <groupId>org.apache.maven.plugins</groupId>
73         <artifactId>maven-dependency-plugin</artifactId>
74         <version>2.10</version>
75         <executions>
76           <execution>
77             <id>copy-dependencies</id>
78             <phase>package</phase>
79             <goals>
80               <goal>copy-dependencies</goal>
81             </goals>
82             <configuration>
83               <outputDirectory>${project.build.directory}/deps</outputDirectory>
84               <overWriteReleases>false</overWriteReleases>
85               <overWriteSnapshots>false</overWriteSnapshots>
86               <overWriteIfNewer>true</overWriteIfNewer>
87             </configuration>
88           </execution>
89         </executions>
90       </plugin>
91       <!-- blackduck maven plugin -->
92       <!--plugin>
93         <groupId>com.blackducksoftware.integration</groupId>
94         <artifactId>hub-maven-plugin</artifactId>
95         <version>1.0.4</version>
96         <inherited>false</inherited>
97         <configuration>
98           <target>${project.basedir}</target>
99         </configuration>
100         <executions>
101           <execution>
102             <id>create-bdio-file</id>
103             <phase>package</phase>
104             <goals>
105               <goal>createHubOutput</goal>
106             </goals>
107           </execution>
108         </executions>
109       </plugin-->
110  
111  
112
113       <plugin>
114         <groupId>org.sonatype.plugins</groupId>
115         <artifactId>nexus-staging-maven-plugin</artifactId>
116         <version>1.6.7</version>
117         <extensions>true</extensions>
118         <configuration>
119           <serverId>ecomp-staging</serverId>
120           <nexusUrl>${nexusproxy}</nexusUrl>
121           <stagingProfileId>176c31dfe190a</stagingProfileId>
122         </configuration>
123       </plugin>
124 <!--  reference: https://tech.homeaway.com/development/2016/06/02/generating-swagger-spec.html 
125         <plugin>
126     <groupId>com.github.kongchen</groupId>
127     <artifactId>swagger-maven-plugin</artifactId>
128     <version>3.1.5</version>
129     <configuration>
130         <apiSources>
131             <apiSource>
132                 <springmvc>false</springmvc>
133                 <locations>
134                         <location>org.onap.dmaap.dbcapi.resources</location>
135                 </locations>
136                 <schemes>
137                    <scheme>http</scheme>
138                    <scheme>https</scheme>
139                 </schemes>
140                 <host>www.[host]:[port]</host>
141                 <basePath>/webapi</basePath>
142                 <info>
143                     <title>DMaaP Bus Controller REST API</title>
144                     <version>1.1.0</version>
145                     <description>
146 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.
147
148 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).
149
150 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.
151
152 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.
153
154 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.
155
156 A convention of this API is to return JSON responses per OpenStack style.
157                     </description>
158                     <termsOfService>
159                         http://www.apache.org/licenses/LICENSE-2.0
160                     </termsOfService>
161                     <contact>
162                         <url>http://www.onap.org</url>
163                     </contact>
164                     <license>
165                         <url>http://www.apache.org/licenses/LICENSE-2.0</url>
166                         <name>Licensed under the Apache License, Version 2.0</name>
167                     </license>
168                 </info>
169                 <swaggerDirectory>target/generated-sources/</swaggerDirectory>
170             </apiSource>
171         </apiSources>
172     </configuration>
173     <executions>
174         <execution>
175             <phase>compile</phase>
176             <goals>
177                 <goal>generate</goal>
178             </goals>
179         </execution>
180     </executions>
181   </plugin>
182 -->
183  
184     </plugins>
185     <pluginManagement>
186       <plugins>
187         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
188         <plugin>
189           <groupId>org.eclipse.m2e</groupId>
190           <artifactId>lifecycle-mapping</artifactId>
191           <version>1.0.0</version>
192           <configuration>
193             <lifecycleMappingMetadata>
194               <pluginExecutions>
195                 <pluginExecution>
196                   <pluginExecutionFilter>
197                     <groupId>org.apache.maven.plugins</groupId>
198                     <artifactId>maven-dependency-plugin</artifactId>
199                     <versionRange>[2.10,)</versionRange>
200                     <goals>
201                       <goal>copy-dependencies</goal>
202                     </goals>
203                   </pluginExecutionFilter>
204                   <action>
205                     <ignore/>
206                   </action>
207                 </pluginExecution>
208               </pluginExecutions>
209             </lifecycleMappingMetadata>
210           </configuration>
211         </plugin>
212       </plugins>
213     </pluginManagement>
214   </build>
215   <dependencyManagement>
216     <dependencies>
217  
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>io.swagger</groupId>
230         <artifactId>swagger-core</artifactId>
231         <version>1.5.13</version>
232       </dependency>
233       <dependency>
234         <groupId>io.swagger</groupId>
235         <artifactId>swagger-jersey2-jaxrs</artifactId>
236         <version>1.5.13</version>
237       </dependency>
238        <dependency>
239         <groupId>io.swagger</groupId>
240         <artifactId>swagger-annotations</artifactId>
241         <version>1.5.13</version>
242       </dependency>   
243     <dependency>
244       <groupId>org.glassfish.jersey.containers</groupId>
245       <artifactId>jersey-container-servlet-core</artifactId>
246       <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
247       <!-- artifactId>jersey-container-servlet</artifactId -->
248     </dependency>
249     <dependency>
250       <groupId>org.glassfish.jersey.media</groupId>
251       <artifactId>jersey-media-moxy</artifactId>
252     </dependency>
253     <dependency>
254       <groupId>log4j</groupId>
255       <artifactId>log4j</artifactId>
256       <version>1.2.17</version>
257     </dependency>
258     <dependency>
259       <groupId>org.eclipse.jetty</groupId>
260       <artifactId>jetty-server</artifactId>
261       <version>${jettyVersion}</version>
262     </dependency>
263     <dependency>
264       <groupId>org.eclipse.jetty</groupId>
265       <artifactId>jetty-servlet</artifactId>
266       <version>${jettyVersion}</version>
267       <scope>compile</scope>
268     </dependency>
269     <dependency>
270       <groupId>org.eclipse.jetty</groupId>
271       <artifactId>jetty-servlets</artifactId>
272       <version>${jettyVersion}</version>
273       <scope>compile</scope>
274     </dependency>
275     <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
276     <dependency>
277       <groupId>com.googlecode.json-simple</groupId>
278       <artifactId>json-simple</artifactId>
279       <version>1.1.1</version>
280     </dependency>
281     <dependency>
282       <groupId>commons-codec</groupId>
283       <artifactId>commons-codec</artifactId>
284       <version>1.6</version>
285     </dependency>
286     <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
287     <dependency>
288       <groupId>org.postgresql</groupId>
289       <artifactId>postgresql</artifactId>
290       <version>9.4.1208.jre7</version>
291     </dependency>
292     <dependency>
293         <groupId>com.att.eelf</groupId> 
294         <artifactId>eelf-core</artifactId> 
295         <version>${eelf.version}</version> 
296     </dependency>
297     <dependency>
298         <groupId>org.slf4j</groupId> 
299         <artifactId>slf4j-api</artifactId> 
300         <version>1.7.22</version> 
301     </dependency>
302   </dependencies>
303   <reporting>
304     <plugins>
305       <plugin>
306         <groupId>org.apache.maven.plugins</groupId>
307         <artifactId>maven-javadoc-plugin</artifactId>
308         <version>2.10.4</version>
309         <configuration>
310           <failOnError>false</failOnError>
311           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
312           <docletArtifact>
313             <groupId>org.umlgraph</groupId>
314             <artifactId>umlgraph</artifactId>
315             <version>5.6</version>
316           </docletArtifact>
317           <additionalparam>-views</additionalparam>
318           <useStandardDocletOptions>true</useStandardDocletOptions>
319         </configuration>
320       </plugin>
321     </plugins>
322   </reporting>
323   <properties>
324     <jersey.version>2.16</jersey.version>
325     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
326     <jettyVersion>9.3.7.v20160115</jettyVersion>
327     <eelf.version>0.0.1</eelf.version>
328     <artifact.version>1.0.0-SNAPSHOT</artifact.version>
329     <nexusproxy>https://nexus.onap.org</nexusproxy>
330     <snapshots.path>content/repositories/snapshots/</snapshots.path>
331     <releases.path>content/repositories/releases/</releases.path>
332   </properties>
333   <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>
334 </project>