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>${artifact.version}</version>
7 <name>dmaap-buscontroller</name>
9 <groupId>org.onap.oparent</groupId>
10 <artifactId>oparent</artifactId>
11 <version>1.1.0</version>
15 <finalName>buscontroller</finalName>
19 <groupId>org.apache.maven.plugins</groupId>
20 <artifactId>maven-enforcer-plugin</artifactId>
23 <id>enforce-no-snapshots</id>
30 <message>No Snapshots Allowed!</message>
32 <exclude>org.onap.dmaap.dbcapi:dbcapi</exclude>
42 <!-- Package an Uber jar -->
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-shade-plugin</artifactId>
46 <version>2.4.3</version>
48 <!-- Run shade goal on package phase -->
50 <phase>package</phase>
55 <!-- this filter section is needed to avoid runtime error:
56 java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
57 suggestion found at: https://stackoverflow.com/q/999489
61 <artifact>*:*</artifact>
63 <exclude>META-INF/*.SF</exclude>
64 <exclude>META-INF/*.DSA</exclude>
65 <exclude>META-INF/*.RSA</exclude>
70 <!-- NOTE: Need the following transformer else gets "Could not resolve type id 'https' into a subtype" error
71 Solution found from here:
72 http://stackoverflow.com/questions/27543060/why-does-dropwizard-configuration-is-not-working
73 Some more context here:
74 https://github.com/dropwizard/dropwizard/issues/455 -->
75 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
76 <!-- add Main-Class to manifest file -->
77 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
78 <mainClass>org.onap.dmaap.dbcapi.server.Main</mainClass>
89 <groupId>org.sonatype.plugins</groupId>
90 <artifactId>nexus-staging-maven-plugin</artifactId>
91 <extensions>true</extensions>
93 <serverId>ecomp-staging</serverId>
94 <nexusUrl>${nexusproxy}</nexusUrl>
95 <stagingProfileId>176c31dfe190a</stagingProfileId>
100 <!-- for Distribution management -->
102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-site-plugin</artifactId>
106 <groupId>org.apache.maven.wagon</groupId>
107 <artifactId>wagon-webdav-jackrabbit</artifactId>
108 <version>2.10</version>
116 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
118 <groupId>org.eclipse.m2e</groupId>
119 <artifactId>lifecycle-mapping</artifactId>
120 <version>1.0.0</version>
122 <lifecycleMappingMetadata>
125 <pluginExecutionFilter>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-dependency-plugin</artifactId>
128 <versionRange>[2.10,)</versionRange>
129 <phase>install</phase>
131 <goal>copy-dependencies</goal>
133 </pluginExecutionFilter>
139 </lifecycleMappingMetadata>
151 <groupId>com.spotify</groupId>
152 <artifactId>docker-maven-plugin</artifactId>
153 <version>1.0.0</version>
155 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image}</imageName>
156 <dockerDirectory>${project.basedir}</dockerDirectory>
157 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
159 <imageTag>${artifact.version}</imageTag>
160 <imageTag>latest</imageTag>
162 <forceTags>true</forceTags>
165 <targetPath>/</targetPath>
166 <directory>${project.basedir}</directory>
168 <exclude>target/**/*</exclude>
169 <exclude>pom.xml</exclude>
174 <targetPath>/</targetPath>
175 <directory>${project.build.directory}</directory>
176 <include>**/**</include>
185 <dependencyManagement>
189 <groupId>org.glassfish.jersey</groupId>
190 <artifactId>jersey-bom</artifactId>
191 <version>${jersey.version}</version>
193 <scope>import</scope>
196 </dependencyManagement>
199 <groupId>io.swagger</groupId>
200 <artifactId>swagger-core</artifactId>
201 <version>1.5.13</version>
204 <groupId>io.swagger</groupId>
205 <artifactId>swagger-jersey2-jaxrs</artifactId>
206 <version>1.5.13</version>
209 <groupId>io.swagger</groupId>
210 <artifactId>swagger-annotations</artifactId>
211 <version>1.5.13</version>
214 <groupId>org.glassfish.jersey.containers</groupId>
215 <artifactId>jersey-container-servlet-core</artifactId>
216 <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
217 <!-- artifactId>jersey-container-servlet</artifactId -->
220 <groupId>org.glassfish.jersey.media</groupId>
221 <artifactId>jersey-media-moxy</artifactId>
224 <groupId>log4j</groupId>
225 <artifactId>log4j</artifactId>
226 <version>1.2.17</version>
229 <groupId>org.eclipse.jetty</groupId>
230 <artifactId>jetty-server</artifactId>
231 <version>${jettyVersion}</version>
234 <groupId>org.eclipse.jetty</groupId>
235 <artifactId>jetty-servlet</artifactId>
236 <version>${jettyVersion}</version>
237 <scope>compile</scope>
240 <groupId>org.eclipse.jetty</groupId>
241 <artifactId>jetty-servlets</artifactId>
242 <version>${jettyVersion}</version>
243 <scope>compile</scope>
245 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
247 <groupId>com.googlecode.json-simple</groupId>
248 <artifactId>json-simple</artifactId>
249 <version>1.1.1</version>
252 <groupId>commons-codec</groupId>
253 <artifactId>commons-codec</artifactId>
254 <version>1.6</version>
256 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
258 <groupId>org.postgresql</groupId>
259 <artifactId>postgresql</artifactId>
260 <version>9.4.1208.jre7</version>
263 <groupId>com.att.eelf</groupId>
264 <artifactId>eelf-core</artifactId>
265 <version>${eelf.version}</version>
268 <groupId>org.onap.dmaap.dbcapi</groupId>
269 <artifactId>dbcapi</artifactId>
270 <version>1.0.2-SNAPSHOT</version>
276 <groupId>org.apache.maven.plugins</groupId>
277 <artifactId>maven-javadoc-plugin</artifactId>
278 <version>2.10.4</version>
280 <failOnError>false</failOnError>
281 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
283 <groupId>org.umlgraph</groupId>
284 <artifactId>umlgraph</artifactId>
285 <version>5.6</version>
287 <additionalparam>-views</additionalparam>
288 <useStandardDocletOptions>true</useStandardDocletOptions>
294 <distributionManagement>
297 <url>dav:${nexusproxy}${sitePath}</url>
299 </distributionManagement>
301 <jersey.version>2.16</jersey.version>
302 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
303 <jettyVersion>9.3.7.v20160115</jettyVersion>
304 <eelf.version>0.0.1</eelf.version>
305 <artifact.version>1.0.4</artifact.version>
307 <jacoco.version>0.7.7.201606060606</jacoco.version>
308 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
309 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
310 <!-- Default Sonar configuration -->
311 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
312 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
313 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
314 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
316 <!-- docker image -->
317 <docker.image>onap/dmaap/buscontroller</docker.image>
319 <nexusproxy>https://nexus.onap.org</nexusproxy>
320 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
322 <!-- for Distribution Management -->
323 <sitePath>/content/sites/site/org/onap/dmaap/buscontroller/${artifact.version}</sitePath>
325 <description>Packaging Platform (DMaaP) Bus Controller API as a Docker container. </description>