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