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 <groupId>com.spotify</groupId>
60 <artifactId>docker-maven-plugin</artifactId>
61 <version>1.0.0</version>
63 <imageName>${docker.image}</imageName>
64 <dockerDirectory>${project.basedir}</dockerDirectory>
65 <!-- <serverId>docker-hub</serverId> -->
67 <imageTag>${artifact.version}</imageTag>
68 <imageTag>latest</imageTag>
70 <forceTags>true</forceTags>
73 <targetPath>/</targetPath>
74 <directory>${project.basedir}</directory>
76 <exclude>target/**/*</exclude>
77 <exclude>pom.xml</exclude>
82 <targetPath>/</targetPath>
83 <directory>${project.build.directory}</directory>
84 <include>**/**</include>
92 <phase>package</phase>
97 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
102 <id>tag-image-project-version</id>
103 <phase>package</phase>
108 <image>${docker.image}</image>
109 <newName>${docker.push.registry}/${docker.image}:${artifact.version}</newName>
110 <skipDockerTag>${skip.docker.push}</skipDockerTag>
115 <id>tag-image-latest</id>
116 <phase>package</phase>
121 <image>${docker.image}</image>
122 <newName>${docker.push.registry}/${docker.image}:latest</newName>
123 <skipDockerTag>${skip.docker.push}</skipDockerTag>
128 <id>push-image-latest</id>
129 <phase>deploy</phase>
134 <imageName>${docker.push.registry}/${docker.image}:${artifact.version}</imageName>
135 <skipDockerPush>${skip.docker.push}</skipDockerPush>
141 <phase>deploy</phase>
146 <imageName>${docker.push.registry}/${docker.image}:latest</imageName>
147 <skipDockerPush>${skip.docker.push}</skipDockerPush>
153 <!-- for Distribution management -->
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-site-plugin</artifactId>
157 <version>3.6</version>
160 <groupId>org.apache.maven.wagon</groupId>
161 <artifactId>wagon-webdav-jackrabbit</artifactId>
162 <version>2.10</version>
170 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
172 <groupId>org.eclipse.m2e</groupId>
173 <artifactId>lifecycle-mapping</artifactId>
174 <version>1.0.0</version>
176 <lifecycleMappingMetadata>
179 <pluginExecutionFilter>
180 <groupId>org.apache.maven.plugins</groupId>
181 <artifactId>maven-dependency-plugin</artifactId>
182 <versionRange>[2.10,)</versionRange>
183 <phase>install</phase>
185 <goal>copy-dependencies</goal>
187 </pluginExecutionFilter>
193 </lifecycleMappingMetadata>
199 <dependencyManagement>
203 <groupId>org.glassfish.jersey</groupId>
204 <artifactId>jersey-bom</artifactId>
205 <version>${jersey.version}</version>
207 <scope>import</scope>
210 </dependencyManagement>
213 <groupId>io.swagger</groupId>
214 <artifactId>swagger-core</artifactId>
215 <version>1.5.13</version>
218 <groupId>io.swagger</groupId>
219 <artifactId>swagger-jersey2-jaxrs</artifactId>
220 <version>1.5.13</version>
223 <groupId>io.swagger</groupId>
224 <artifactId>swagger-annotations</artifactId>
225 <version>1.5.13</version>
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 -->
234 <groupId>org.glassfish.jersey.media</groupId>
235 <artifactId>jersey-media-moxy</artifactId>
238 <groupId>log4j</groupId>
239 <artifactId>log4j</artifactId>
240 <version>1.2.17</version>
243 <groupId>org.eclipse.jetty</groupId>
244 <artifactId>jetty-server</artifactId>
245 <version>${jettyVersion}</version>
248 <groupId>org.eclipse.jetty</groupId>
249 <artifactId>jetty-servlet</artifactId>
250 <version>${jettyVersion}</version>
251 <scope>compile</scope>
254 <groupId>org.eclipse.jetty</groupId>
255 <artifactId>jetty-servlets</artifactId>
256 <version>${jettyVersion}</version>
257 <scope>compile</scope>
259 <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
261 <groupId>com.googlecode.json-simple</groupId>
262 <artifactId>json-simple</artifactId>
263 <version>1.1.1</version>
266 <groupId>commons-codec</groupId>
267 <artifactId>commons-codec</artifactId>
268 <version>1.6</version>
270 <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
272 <groupId>org.postgresql</groupId>
273 <artifactId>postgresql</artifactId>
274 <version>9.4.1208.jre7</version>
277 <groupId>com.att.eelf</groupId>
278 <artifactId>eelf-core</artifactId>
279 <version>${eelf.version}</version>
282 <groupId>org.onap.dmaap.dbcapi</groupId>
283 <artifactId>dbcapi</artifactId>
284 <version>1.0.1-SNAPSHOT</version>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-javadoc-plugin</artifactId>
292 <version>2.10.4</version>
294 <failOnError>false</failOnError>
295 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
297 <groupId>org.umlgraph</groupId>
298 <artifactId>umlgraph</artifactId>
299 <version>5.6</version>
301 <additionalparam>-views</additionalparam>
302 <useStandardDocletOptions>true</useStandardDocletOptions>
308 <distributionManagement>
311 <url>dav:${nexusproxy}${sitePath}</url>
313 </distributionManagement>
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>
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>
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>
337 <!-- for Distribution Management -->
338 <sitePath>/content/sites/site/org/onap/dmaap/buscontroller/${artifact.version}</sitePath>
340 <description>Packaging Platform (DMaaP) Bus Controller API as a Docker container. </description>