Added site for Dist Mgt
[dmaap/buscontroller.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.buscontroller</groupId>
5   <artifactId>buscontroller</artifactId>
6   <version>1.0.1</version>
7   <name>dmaap-buscontroller</name>
8   <parent>
9     <groupId>org.onap.oparent</groupId>
10     <artifactId>oparent</artifactId>
11     <version>0.1.1</version>
12     <relativePath/>
13   </parent>
14   <build>
15     <finalName>buscontroller</finalName>
16
17     <plugins>
18       <plugin>
19         <groupId>org.apache.maven.plugins</groupId>
20         <artifactId>maven-enforcer-plugin</artifactId>
21         <version>3.0.0-M1</version>
22         <executions>
23           <execution>
24             <id>enforce-no-snapshots</id>
25             <goals>
26               <goal>enforce</goal>
27             </goals>
28             <configuration>
29               <rules>
30                 <requireReleaseDeps>
31                   <message>No Snapshots Allowed!</message>
32                   <excludes>
33                     <exclude>org.onap.dmaap.dbcapi:dbcapi</exclude>
34                   </excludes>
35                 </requireReleaseDeps>
36               </rules>
37               <fail>true</fail>
38             </configuration>
39           </execution>
40         </executions>
41       </plugin>
42           <plugin>
43         <!--Special goal to populate target/libs with dependencies to place in docker image -->
44             <groupId>org.apache.maven.plugins</groupId>
45             <artifactId>maven-dependency-plugin</artifactId>
46             <executions>
47               <execution>
48                     <phase>install</phase>
49                     <goals>
50                       <goal>copy-dependencies</goal>
51                     </goals>
52                     <configuration>
53                       <outputDirectory>${project.build.directory}/dependency</outputDirectory>
54                     </configuration>
55               </execution>
56        </executions>
57       </plugin>
58       <plugin>
59                 <groupId>com.spotify</groupId>
60                  <artifactId>docker-maven-plugin</artifactId>
61                  <version>1.0.0</version>
62                  <configuration>
63                                  <imageName>${docker.image}</imageName>
64                              <dockerDirectory>${project.basedir}</dockerDirectory>
65                                  <!--   <serverId>docker-hub</serverId>   -->
66                                  <imageTags>
67                                                  <imageTag>${artifact.version}</imageTag>
68                                                  <imageTag>latest</imageTag>
69                                  </imageTags>
70                                  <forceTags>true</forceTags>
71                                  <resources>
72                                                  <resource>
73                                                                  <targetPath>/</targetPath>
74                                                                  <directory>${project.basedir}</directory>
75                                                                  <excludes>
76                                                                         <exclude>target/**/*</exclude>
77                                                                         <exclude>pom.xml</exclude>
78                                                                 </excludes>
79                                                  </resource>
80 <!-- what is this?
81                                                  <resource>
82                                                                  <targetPath>/</targetPath>
83                                                                  <directory>${project.build.directory}</directory>
84                                                                  <include>**/**</include>
85                                                  </resource>
86  -->
87                                  </resources>
88                  </configuration>
89                  <executions>
90                                  <execution>
91                                                  <id>build-image</id>
92                                                  <phase>package</phase>
93                                                  <goals>
94                                                                  <goal>build</goal>
95                                                  </goals>
96                                                  <configuration>
97                                                                  <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
98                                                  </configuration>
99                                  </execution>
100
101                                  <execution>
102                                                  <id>tag-image-project-version</id>
103                                                  <phase>package</phase>
104                                                  <goals>
105                                                                  <goal>tag</goal>
106                                                  </goals>
107                                                  <configuration>
108                                                                  <image>${docker.image}</image>
109                                                                  <newName>${docker.push.registry}/${docker.image}:${artifact.version}</newName>
110                                                                  <skipDockerTag>${skip.docker.push}</skipDockerTag>
111                                                  </configuration>
112                                  </execution>
113
114                                  <execution>
115                                                  <id>tag-image-latest</id>
116                                                  <phase>package</phase>
117                                                  <goals>
118                                                                  <goal>tag</goal>
119                                                  </goals>
120                                                  <configuration>
121                                                                  <image>${docker.image}</image>
122                                                                  <newName>${docker.push.registry}/${docker.image}:latest</newName>
123                                                                  <skipDockerTag>${skip.docker.push}</skipDockerTag>
124                                                  </configuration>
125                                  </execution>
126
127                                  <execution>
128                                                  <id>push-image-latest</id>
129                                                  <phase>deploy</phase>
130                                                  <goals>
131                                                                  <goal>push</goal>
132                                                  </goals>
133                                                  <configuration>
134                                                                  <imageName>${docker.push.registry}/${docker.image}:${artifact.version}</imageName>
135                                                                  <skipDockerPush>${skip.docker.push}</skipDockerPush>
136                                                  </configuration>
137                                  </execution>
138
139                                  <execution>
140                                                  <id>push-image</id>
141                                                  <phase>deploy</phase>
142                                                  <goals>
143                                                                  <goal>push</goal>
144                                                  </goals>
145                                                  <configuration>
146                                                                  <imageName>${docker.push.registry}/${docker.image}:latest</imageName>
147                                                                  <skipDockerPush>${skip.docker.push}</skipDockerPush>
148                                                  </configuration>
149                                  </execution>
150                  </executions>
151       </plugin>
152
153         <!-- for Distribution management -->
154                 <plugin>
155                   <groupId>org.apache.maven.plugins</groupId>
156                   <artifactId>maven-site-plugin</artifactId>
157                   <version>3.6</version>
158                   <dependencies>
159                         <dependency>
160                           <groupId>org.apache.maven.wagon</groupId>
161                           <artifactId>wagon-webdav-jackrabbit</artifactId>
162                           <version>2.10</version>
163                         </dependency>
164                   </dependencies>
165                 </plugin>
166
167     </plugins>
168     <pluginManagement>
169       <plugins>
170         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
171         <plugin>
172           <groupId>org.eclipse.m2e</groupId>
173           <artifactId>lifecycle-mapping</artifactId>
174           <version>1.0.0</version>
175           <configuration>
176             <lifecycleMappingMetadata>
177               <pluginExecutions>
178                 <pluginExecution>
179                   <pluginExecutionFilter>
180                     <groupId>org.apache.maven.plugins</groupId>
181                     <artifactId>maven-dependency-plugin</artifactId>
182                     <versionRange>[2.10,)</versionRange>
183                                             <phase>install</phase>
184                         <goals>
185                           <goal>copy-dependencies</goal>
186                         </goals>
187                   </pluginExecutionFilter>
188                   <action>
189                     <ignore/>
190                   </action>
191                 </pluginExecution>
192               </pluginExecutions>
193             </lifecycleMappingMetadata>
194           </configuration>
195         </plugin>
196       </plugins>
197     </pluginManagement>
198   </build>
199   <dependencyManagement>
200     <dependencies>
201  
202       <dependency>
203         <groupId>org.glassfish.jersey</groupId>
204         <artifactId>jersey-bom</artifactId>
205         <version>${jersey.version}</version>
206         <type>pom</type>
207         <scope>import</scope>
208       </dependency>
209     </dependencies>
210   </dependencyManagement>
211   <dependencies>
212         <dependency>
213         <groupId>io.swagger</groupId>
214         <artifactId>swagger-core</artifactId>
215         <version>1.5.13</version>
216       </dependency>
217       <dependency>
218         <groupId>io.swagger</groupId>
219         <artifactId>swagger-jersey2-jaxrs</artifactId>
220         <version>1.5.13</version>
221       </dependency>
222        <dependency>
223         <groupId>io.swagger</groupId>
224         <artifactId>swagger-annotations</artifactId>
225         <version>1.5.13</version>
226       </dependency>   
227     <dependency>
228       <groupId>org.glassfish.jersey.containers</groupId>
229       <artifactId>jersey-container-servlet-core</artifactId>
230       <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
231       <!-- artifactId>jersey-container-servlet</artifactId -->
232     </dependency>
233     <dependency>
234       <groupId>org.glassfish.jersey.media</groupId>
235       <artifactId>jersey-media-moxy</artifactId>
236     </dependency>
237     <dependency>
238       <groupId>log4j</groupId>
239       <artifactId>log4j</artifactId>
240       <version>1.2.17</version>
241     </dependency>
242     <dependency>
243       <groupId>org.eclipse.jetty</groupId>
244       <artifactId>jetty-server</artifactId>
245       <version>${jettyVersion}</version>
246     </dependency>
247     <dependency>
248       <groupId>org.eclipse.jetty</groupId>
249       <artifactId>jetty-servlet</artifactId>
250       <version>${jettyVersion}</version>
251       <scope>compile</scope>
252     </dependency>
253     <dependency>
254       <groupId>org.eclipse.jetty</groupId>
255       <artifactId>jetty-servlets</artifactId>
256       <version>${jettyVersion}</version>
257       <scope>compile</scope>
258     </dependency>
259     <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
260     <dependency>
261       <groupId>com.googlecode.json-simple</groupId>
262       <artifactId>json-simple</artifactId>
263       <version>1.1.1</version>
264     </dependency>
265     <dependency>
266       <groupId>commons-codec</groupId>
267       <artifactId>commons-codec</artifactId>
268       <version>1.6</version>
269     </dependency>
270     <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
271     <dependency>
272       <groupId>org.postgresql</groupId>
273       <artifactId>postgresql</artifactId>
274       <version>9.4.1208.jre7</version>
275     </dependency>
276         <dependency>
277                 <groupId>com.att.eelf</groupId> 
278                 <artifactId>eelf-core</artifactId> 
279                 <version>${eelf.version}</version> 
280         </dependency>
281         <dependency>
282                 <groupId>org.onap.dmaap.dbcapi</groupId>
283                 <artifactId>dbcapi</artifactId>
284                 <version>1.0.1-SNAPSHOT</version>
285         </dependency>
286   </dependencies>
287   <reporting>
288     <plugins>
289       <plugin>
290         <groupId>org.apache.maven.plugins</groupId>
291         <artifactId>maven-javadoc-plugin</artifactId>
292         <version>2.10.4</version>
293         <configuration>
294           <failOnError>false</failOnError>
295           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
296           <docletArtifact>
297             <groupId>org.umlgraph</groupId>
298             <artifactId>umlgraph</artifactId>
299             <version>5.6</version>
300           </docletArtifact>
301           <additionalparam>-views</additionalparam>
302           <useStandardDocletOptions>true</useStandardDocletOptions>
303         </configuration>
304       </plugin>
305     </plugins>
306   </reporting>
307
308   <distributionManagement>
309         <site>
310                 <id>ecomp-site</id>
311                 <url>dav:${nexusproxy}${sitePath}</url>
312         </site>
313   </distributionManagement>
314   <properties>
315     <jersey.version>2.16</jersey.version>
316     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
317     <jettyVersion>9.3.7.v20160115</jettyVersion>
318     <eelf.version>0.0.1</eelf.version>
319     <artifact.version>1.0.1</artifact.version>
320                 <!--  SONAR  -->
321                  <jacoco.version>0.7.7.201606060606</jacoco.version>
322             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
323             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
324             <!-- Default Sonar configuration -->
325             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
326             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
327             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
328             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
329
330         <!-- docker image -->
331                  <docker.image>onap/dmaap/buscontroller</docker.image>
332                  <skip.docker.build>true</skip.docker.build>
333                  <skip.docker.push>true</skip.docker.push>
334                  <nexusproxy>https://nexus.onap.org</nexusproxy>
335                  <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
336
337         <!-- for Distribution Management -->
338                 <sitePath>/content/sites/site/org/onap/dmaap/buscontroller/${artifact.version}</sitePath>
339   </properties>
340   <description>Packaging Platform (DMaaP) Bus Controller API as a Docker container. </description>
341 </project>