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>
9 <groupId>org.onap.oparent</groupId>
10 <artifactId>oparent</artifactId>
11 <version>0.1.1</version>
15 <finalName>buscontroller</finalName>
19 <groupId>org.apache.maven.plugins</groupId>
20 <artifactId>maven-enforcer-plugin</artifactId>
21 <version>3.0.0-M1</version>
24 <id>enforce-no-snapshots</id>
31 <message>No Snapshots Allowed!</message>
33 <exclude>org.onap.dmaap.dbcapi:dbcapi</exclude>
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>
48 <phase>install</phase>
50 <goal>copy-dependencies</goal>
53 <outputDirectory>${project.build.directory}/dependency</outputDirectory>
59 <!-- for Distribution management -->
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-site-plugin</artifactId>
63 <version>3.6</version>
66 <groupId>org.apache.maven.wagon</groupId>
67 <artifactId>wagon-webdav-jackrabbit</artifactId>
68 <version>2.10</version>
76 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
78 <groupId>org.eclipse.m2e</groupId>
79 <artifactId>lifecycle-mapping</artifactId>
80 <version>1.0.0</version>
82 <lifecycleMappingMetadata>
85 <pluginExecutionFilter>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-dependency-plugin</artifactId>
88 <versionRange>[2.10,)</versionRange>
89 <phase>install</phase>
91 <goal>copy-dependencies</goal>
93 </pluginExecutionFilter>
99 </lifecycleMappingMetadata>
111 <groupId>com.spotify</groupId>
112 <artifactId>docker-maven-plugin</artifactId>
113 <version>1.0.0</version>
115 <imageName>${docker.image}</imageName>
116 <dockerDirectory>${project.basedir}</dockerDirectory>
117 <!-- <serverId>docker-hub</serverId> -->
119 <imageTag>${artifact.version}</imageTag>
120 <imageTag>latest</imageTag>
122 <forceTags>true</forceTags>
125 <targetPath>/</targetPath>
126 <directory>${project.basedir}</directory>
128 <exclude>target/**/*</exclude>
129 <exclude>pom.xml</exclude>
134 <targetPath>/</targetPath>
135 <directory>${project.build.directory}</directory>
136 <include>**/**</include>
144 <phase>package</phase>
149 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
154 <id>tag-image-project-version</id>
155 <phase>package</phase>
160 <image>${docker.image}</image>
161 <newName>${docker.push.registry}/${docker.image}:${artifact.version}</newName>
162 <skipDockerTag>${skip.docker.push}</skipDockerTag>
167 <id>tag-image-latest</id>
168 <phase>package</phase>
173 <image>${docker.image}</image>
174 <newName>${docker.push.registry}/${docker.image}:latest</newName>
175 <skipDockerTag>${skip.docker.push}</skipDockerTag>
180 <id>push-image-latest</id>
181 <phase>deploy</phase>
186 <imageName>${docker.push.registry}/${docker.image}:${artifact.version}</imageName>
187 <skipDockerPush>${skip.docker.push}</skipDockerPush>
193 <phase>deploy</phase>
198 <imageName>${docker.push.registry}/${docker.image}:latest</imageName>
199 <skipDockerPush>${skip.docker.push}</skipDockerPush>
208 <dependencyManagement>
212 <groupId>org.glassfish.jersey</groupId>
213 <artifactId>jersey-bom</artifactId>
214 <version>${jersey.version}</version>
216 <scope>import</scope>
219 </dependencyManagement>
222 <groupId>io.swagger</groupId>
223 <artifactId>swagger-core</artifactId>
224 <version>1.5.13</version>
227 <groupId>io.swagger</groupId>
228 <artifactId>swagger-jersey2-jaxrs</artifactId>
229 <version>1.5.13</version>
232 <groupId>io.swagger</groupId>
233 <artifactId>swagger-annotations</artifactId>
234 <version>1.5.13</version>
237 <groupId>org.glassfish.jersey.containers</groupId>
238 <artifactId>jersey-container-servlet-core</artifactId>
239 <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
240 <!-- artifactId>jersey-container-servlet</artifactId -->
243 <groupId>org.glassfish.jersey.media</groupId>
244 <artifactId>jersey-media-moxy</artifactId>
247 <groupId>log4j</groupId>
248 <artifactId>log4j</artifactId>
249 <version>1.2.17</version>
252 <groupId>org.eclipse.jetty</groupId>
253 <artifactId>jetty-server</artifactId>
254 <version>${jettyVersion}</version>
257 <groupId>org.eclipse.jetty</groupId>
258 <artifactId>jetty-servlet</artifactId>
259 <version>${jettyVersion}</version>
260 <scope>compile</scope>
263 <groupId>org.eclipse.jetty</groupId>
264 <artifactId>jetty-servlets</artifactId>
265 <version>${jettyVersion}</version>
266 <scope>compile</scope>
268 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
270 <groupId>com.googlecode.json-simple</groupId>
271 <artifactId>json-simple</artifactId>
272 <version>1.1.1</version>
275 <groupId>commons-codec</groupId>
276 <artifactId>commons-codec</artifactId>
277 <version>1.6</version>
279 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
281 <groupId>org.postgresql</groupId>
282 <artifactId>postgresql</artifactId>
283 <version>9.4.1208.jre7</version>
286 <groupId>com.att.eelf</groupId>
287 <artifactId>eelf-core</artifactId>
288 <version>${eelf.version}</version>
291 <groupId>org.onap.dmaap.dbcapi</groupId>
292 <artifactId>dbcapi</artifactId>
293 <version>1.0.1-SNAPSHOT</version>
299 <groupId>org.apache.maven.plugins</groupId>
300 <artifactId>maven-javadoc-plugin</artifactId>
301 <version>2.10.4</version>
303 <failOnError>false</failOnError>
304 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
306 <groupId>org.umlgraph</groupId>
307 <artifactId>umlgraph</artifactId>
308 <version>5.6</version>
310 <additionalparam>-views</additionalparam>
311 <useStandardDocletOptions>true</useStandardDocletOptions>
317 <distributionManagement>
320 <url>dav:${nexusproxy}${sitePath}</url>
322 </distributionManagement>
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.1</artifact.version>
330 <jacoco.version>0.7.7.201606060606</jacoco.version>
331 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
332 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
333 <!-- Default Sonar configuration -->
334 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
335 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
336 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
337 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
339 <!-- docker image -->
340 <docker.image>onap/dmaap/buscontroller</docker.image>
341 <skip.docker.build>true</skip.docker.build>
342 <skip.docker.push>true</skip.docker.push>
343 <nexusproxy>https://nexus.onap.org</nexusproxy>
344 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
346 <!-- for Distribution Management -->
347 <sitePath>/content/sites/site/org/onap/dmaap/buscontroller/${artifact.version}</sitePath>
349 <description>Packaging Platform (DMaaP) Bus Controller API as a Docker container. </description>