blob: 4fdf2adad737891b02f972ade5384e6015e3fbea [file] [log] [blame]
ATT default cloud user17b1b972017-08-31 21:34:47 +00001<?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>
Dominic Lunanuova4a7c3572018-02-12 22:09:44 +00006 <version>1.0.1</version>
Jessica Wagantall9af84512017-09-08 14:38:04 -07007 <name>dmaap-buscontroller</name>
ATT default cloud user19c51782017-09-01 22:03:23 +00008 <parent>
9 <groupId>org.onap.oparent</groupId>
10 <artifactId>oparent</artifactId>
Gildas Lanilis6776e0b2018-03-15 17:32:12 -070011 <version>1.1.0</version>
ATT default cloud usere50b8b62017-12-12 21:41:46 +000012 <relativePath/>
ATT default cloud user19c51782017-09-01 22:03:23 +000013 </parent>
ATT default cloud user17b1b972017-08-31 21:34:47 +000014 <build>
15 <finalName>buscontroller</finalName>
16
17 <plugins>
Dominic Lunanuova4a7c3572018-02-12 22:09:44 +000018 <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>
dglFromAtt0113d282018-03-13 07:11:29 -040040 </executions>
Dominic Lunanuova4a7c3572018-02-12 22:09:44 +000041 </plugin>
dglFromAtt0113d282018-03-13 07:11:29 -040042
43 <!-- Package an Uber jar -->
44 <plugin>
45 <groupId>org.apache.maven.plugins</groupId>
46 <artifactId>maven-shade-plugin</artifactId>
47 <version>2.4.3</version>
48 <executions>
49 <!-- Run shade goal on package phase -->
50 <execution>
51 <phase>package</phase>
52 <goals>
53 <goal>shade</goal>
54 </goals>
55 <configuration>
56 <transformers>
57 <!-- NOTE: Need the following transformer else gets "Could not resolve type id 'https' into a subtype" error
58 Solution found from here:
59 http://stackoverflow.com/questions/27543060/why-does-dropwizard-configuration-is-not-working
60 Some more context here:
61 https://github.com/dropwizard/dropwizard/issues/455 -->
62 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
63 <!-- add Main-Class to manifest file -->
64 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
65 <mainClass>org.onap.dmaap.dbcapi.server.Main</mainClass>
66 </transformer>
67 </transformers>
68 </configuration>
69 </execution>
70 </executions>
71 </plugin>
72
73
74
75 <plugin>
76 <groupId>org.sonatype.plugins</groupId>
77 <artifactId>nexus-staging-maven-plugin</artifactId>
78 <version>1.6.7</version>
79 <extensions>true</extensions>
80 <configuration>
81 <serverId>ecomp-staging</serverId>
82 <nexusUrl>${nexusproxy}</nexusUrl>
83 <stagingProfileId>176c31dfe190a</stagingProfileId>
84 </configuration>
85 </plugin>
86
87 <plugin>
88 <groupId>com.spotify</groupId>
89 <artifactId>docker-maven-plugin</artifactId>
90 <version>1.0.0</version>
91 <configuration>
92 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image}</imageName>
93 <dockerDirectory>${project.basedir}</dockerDirectory>
94 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
95 <imageTags>
96 <imageTag>${artifact.version}</imageTag>
97 <imageTag>latest</imageTag>
98 </imageTags>
99 <forceTags>true</forceTags>
100 <resources>
101 <resource>
102 <targetPath>/</targetPath>
103 <directory>${project.basedir}</directory>
104 <excludes>
105 <exclude>target/**/*</exclude>
106 <exclude>pom.xml</exclude>
107 </excludes>
108 </resource>
109
110 <resource>
111 <targetPath>/</targetPath>
112 <directory>${project.build.directory}</directory>
113 <include>**/**</include>
114 </resource>
115 </resources>
116 </configuration>
dglFromAtt3d2351b2018-03-02 21:37:57 -0500117 </plugin>
dglFromAtt233bc192018-03-13 00:50:42 -0400118
119 <!-- for Distribution management -->
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-site-plugin</artifactId>
123 <version>3.6</version>
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>
ATT default cloud user17b1b972017-08-31 21:34:47 +0000165 <dependencyManagement>
166 <dependencies>
167
168 <dependency>
169 <groupId>org.glassfish.jersey</groupId>
170 <artifactId>jersey-bom</artifactId>
171 <version>${jersey.version}</version>
172 <type>pom</type>
173 <scope>import</scope>
174 </dependency>
175 </dependencies>
176 </dependencyManagement>
177 <dependencies>
178 <dependency>
179 <groupId>io.swagger</groupId>
180 <artifactId>swagger-core</artifactId>
181 <version>1.5.13</version>
182 </dependency>
183 <dependency>
184 <groupId>io.swagger</groupId>
185 <artifactId>swagger-jersey2-jaxrs</artifactId>
186 <version>1.5.13</version>
187 </dependency>
188 <dependency>
189 <groupId>io.swagger</groupId>
190 <artifactId>swagger-annotations</artifactId>
191 <version>1.5.13</version>
192 </dependency>
193 <dependency>
194 <groupId>org.glassfish.jersey.containers</groupId>
195 <artifactId>jersey-container-servlet-core</artifactId>
196 <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
197 <!-- artifactId>jersey-container-servlet</artifactId -->
198 </dependency>
199 <dependency>
200 <groupId>org.glassfish.jersey.media</groupId>
201 <artifactId>jersey-media-moxy</artifactId>
202 </dependency>
203 <dependency>
204 <groupId>log4j</groupId>
205 <artifactId>log4j</artifactId>
206 <version>1.2.17</version>
207 </dependency>
208 <dependency>
209 <groupId>org.eclipse.jetty</groupId>
210 <artifactId>jetty-server</artifactId>
211 <version>${jettyVersion}</version>
212 </dependency>
213 <dependency>
214 <groupId>org.eclipse.jetty</groupId>
215 <artifactId>jetty-servlet</artifactId>
216 <version>${jettyVersion}</version>
217 <scope>compile</scope>
218 </dependency>
219 <dependency>
220 <groupId>org.eclipse.jetty</groupId>
221 <artifactId>jetty-servlets</artifactId>
222 <version>${jettyVersion}</version>
223 <scope>compile</scope>
224 </dependency>
225 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
226 <dependency>
227 <groupId>com.googlecode.json-simple</groupId>
228 <artifactId>json-simple</artifactId>
229 <version>1.1.1</version>
230 </dependency>
231 <dependency>
232 <groupId>commons-codec</groupId>
233 <artifactId>commons-codec</artifactId>
234 <version>1.6</version>
235 </dependency>
236 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
237 <dependency>
238 <groupId>org.postgresql</groupId>
239 <artifactId>postgresql</artifactId>
240 <version>9.4.1208.jre7</version>
241 </dependency>
242 <dependency>
243 <groupId>com.att.eelf</groupId>
244 <artifactId>eelf-core</artifactId>
245 <version>${eelf.version}</version>
246 </dependency>
247 <dependency>
248 <groupId>org.onap.dmaap.dbcapi</groupId>
249 <artifactId>dbcapi</artifactId>
ATT default cloud userb5209f22017-12-08 15:53:22 +0000250 <version>1.0.1-SNAPSHOT</version>
ATT default cloud user17b1b972017-08-31 21:34:47 +0000251 </dependency>
252 </dependencies>
253 <reporting>
254 <plugins>
255 <plugin>
256 <groupId>org.apache.maven.plugins</groupId>
257 <artifactId>maven-javadoc-plugin</artifactId>
258 <version>2.10.4</version>
259 <configuration>
260 <failOnError>false</failOnError>
261 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
262 <docletArtifact>
263 <groupId>org.umlgraph</groupId>
264 <artifactId>umlgraph</artifactId>
265 <version>5.6</version>
266 </docletArtifact>
267 <additionalparam>-views</additionalparam>
268 <useStandardDocletOptions>true</useStandardDocletOptions>
269 </configuration>
270 </plugin>
271 </plugins>
272 </reporting>
dglFromAttdcfef472018-03-03 23:46:15 -0500273
274 <distributionManagement>
275 <site>
276 <id>ecomp-site</id>
277 <url>dav:${nexusproxy}${sitePath}</url>
278 </site>
279 </distributionManagement>
ATT default cloud user17b1b972017-08-31 21:34:47 +0000280 <properties>
281 <jersey.version>2.16</jersey.version>
282 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
283 <jettyVersion>9.3.7.v20160115</jettyVersion>
284 <eelf.version>0.0.1</eelf.version>
Dominic Lunanuova4a7c3572018-02-12 22:09:44 +0000285 <artifact.version>1.0.1</artifact.version>
ATT default cloud user19c51782017-09-01 22:03:23 +0000286 <!-- SONAR -->
287 <jacoco.version>0.7.7.201606060606</jacoco.version>
288 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
289 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
290 <!-- Default Sonar configuration -->
291 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
292 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
293 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
294 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
dglFromAtt89a52432018-03-03 22:07:58 -0500295
296 <!-- docker image -->
297 <docker.image>onap/dmaap/buscontroller</docker.image>
dglFromAtt0113d282018-03-13 07:11:29 -0400298
dglFromAtt89a52432018-03-03 22:07:58 -0500299 <nexusproxy>https://nexus.onap.org</nexusproxy>
300 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
dglFromAttdcfef472018-03-03 23:46:15 -0500301
302 <!-- for Distribution Management -->
303 <sitePath>/content/sites/site/org/onap/dmaap/buscontroller/${artifact.version}</sitePath>
ATT default cloud user17b1b972017-08-31 21:34:47 +0000304 </properties>
305 <description>Packaging Platform (DMaaP) Bus Controller API as a Docker container. </description>
306</project>