3 ============LICENSE_START==========================================
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
12 http://www.apache.org/licenses/LICENSE-2.0
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.
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.dmaap.buscontroller</groupId>
26 <artifactId>dbc-client</artifactId>
27 <version>${artifact.version}</version>
28 <name>dbc-client</name>
30 <groupId>org.onap.oparent</groupId>
31 <artifactId>oparent</artifactId>
32 <version>1.2.2</version>
36 <finalName>dbc-client</finalName>
42 <groupId>org.sonatype.plugins</groupId>
43 <artifactId>nexus-staging-maven-plugin</artifactId>
44 <extensions>true</extensions>
46 <serverId>ecomp-staging</serverId>
47 <nexusUrl>${nexusproxy}</nexusUrl>
48 <stagingProfileId>176c31dfe190a</stagingProfileId>
52 <!-- for Distribution management -->
54 <groupId>org.apache.maven.plugins</groupId>
55 <artifactId>maven-site-plugin</artifactId>
58 <groupId>org.apache.maven.wagon</groupId>
59 <artifactId>wagon-webdav-jackrabbit</artifactId>
60 <version>2.10</version>
68 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
70 <groupId>org.eclipse.m2e</groupId>
71 <artifactId>lifecycle-mapping</artifactId>
72 <version>1.0.0</version>
74 <lifecycleMappingMetadata>
77 <pluginExecutionFilter>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-dependency-plugin</artifactId>
80 <versionRange>[2.10,)</versionRange>
81 <phase>install</phase>
83 <goal>copy-dependencies</goal>
85 </pluginExecutionFilter>
91 </lifecycleMappingMetadata>
101 <skipDockerBuild>false</skipDockerBuild>
102 <skipDockerTag>false</skipDockerTag>
103 <skipTests>true</skipTests>
106 <!-- Copy files to docker-stage to be included in image -->
109 <targetPath>${basedir}/target/docker-stage</targetPath>
110 <directory>${basedir}/src/main/resources</directory>
112 <include>Dockerfile</include>
116 <targetPath>${basedir}/target/docker-stage/opt/app/dbc-client/etc</targetPath>
117 <directory>${multiproject.basedir}/certs</directory>
119 <include>org.onap.dmaap-bc.cred.props</include>
120 <include>org.onap.dmaap-bc.crontab.sh</include>
121 <include>org.onap.dmaap-bc.jks</include>
122 <include>org.onap.dmaap-bc.keyfile</include>
123 <include>org.onap.dmaap-bc.location.props</include>
124 <include>org.onap.dmaap-bc.p12</include>
125 <include>org.onap.dmaap-bc.props</include>
126 <include>org.onap.dmaap-bc.showpass</include>
127 <include>org.onap.dmaap-bc.trust.jks</include>
128 <include>ca.pem</include>
129 <include>client.pem</include>
130 <include>key.pem</include>
135 <targetPath>${basedir}/target/docker-stage/opt/app/dbc-client/bin</targetPath>
136 <directory>${basedir}/misc</directory>
138 <include>dbc-client</include>
142 <targetPath>${basedir}/target/docker-stage/opt/app/dbc-client/etc</targetPath>
143 <directory>${basedir}</directory>
145 <include>version.properties</include>
149 <targetPath>${basedir}/target/docker-stage/opt/app/dbc-client/misc</targetPath>
150 <directory>${multiproject.basedir}/misc</directory>
152 <include>cert-client-init.sh</include>
153 <include>aaf-ca.crt</include>
159 <!-- Copy jar to docker-stage to be included in image -->
161 <artifactId>maven-resources-plugin</artifactId>
162 <version>2.7</version>
166 <phase>package</phase>
168 <goal>copy-resources</goal>
171 <outputDirectory>${basedir}/target/docker-stage/opt/app/dmaapbc/lib</outputDirectory>
174 <directory>${multiproject.basedir}/dbc-client/target</directory>
176 <include>dbc-client.jar</include>
185 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
187 <groupId>org.codehaus.groovy.maven</groupId>
188 <artifactId>gmaven-plugin</artifactId>
191 <phase>validate</phase>
197 <ver>${project.version}</ver>
198 <timestamp>${maven.build.timestamp}</timestamp>
201 println 'ver: ' + project.properties['ver'];
202 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
203 project.properties['dockertag1']=project.properties['ver'] + "-latest";
204 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
206 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
207 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
209 println 'docker tag 1: ' + project.properties['dockertag1'];
210 println 'docker tag 2: ' + project.properties['dockertag2'];
218 <groupId>io.fabric8</groupId>
219 <artifactId>docker-maven-plugin</artifactId>
220 <version>0.28.0</version>
222 <verbose>${docker.verbose}</verbose>
223 <apiVersion>${docker.apiVersion}</apiVersion>
224 <pullRegistry>${docker.pull.registry}</pullRegistry>
225 <pushRegistry>${docker.push.registry}</pushRegistry>
228 <name>${docker.image}</name>
230 <cleanup>try</cleanup>
231 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
232 <dockerFile>Dockerfile</dockerFile>
234 <tag>${dockertag1}</tag>
235 <tag>${dockertag2}</tag>
243 <id>generate-images</id>
244 <phase>install</phase>
251 <phase>deploy</phase>
262 <dependencyManagement>
263 </dependencyManagement>
266 <multiproject.basedir>${basedir}/..</multiproject.basedir>
267 <docker.maven.plugin.version>1.0.0</docker.maven.plugin.version>
268 <jersey.version>2.16</jersey.version>
269 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
270 <jettyVersion>9.4.12.RC2</jettyVersion>
271 <eelf.version>1.0.0</eelf.version>
272 <swagger.version>1.5.19</swagger.version>
273 <artifact.version>1.0.8</artifact.version>
275 <jacoco.version>0.7.7.201606060606</jacoco.version>
276 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
277 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
278 <!-- Default Sonar configuration -->
279 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
280 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
281 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
282 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
284 <!-- docker image -->
285 <docker.image>onap/dmaap/dbc-client</docker.image>
287 <nexusproxy>https://nexus.onap.org</nexusproxy>
288 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
290 <!-- for Distribution Management -->
291 <sitePath>/content/sites/site/org/onap/dmaap/dbc-client/${artifact.version}</sitePath>
293 <timestamp>${maven.build.timestamp}</timestamp>
294 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
297 <description>Packaging Platform (DMaaP) HTTP Client for Bus Controller Provisioning.</description>