dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START========================================== |
| 4 | org.onap.dmaap |
| 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 |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 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. |
| 21 | --> |
| 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> |
| 29 | <parent> |
| 30 | <groupId>org.onap.oparent</groupId> |
| 31 | <artifactId>oparent</artifactId> |
| 32 | <version>1.2.2</version> |
| 33 | <relativePath/> |
| 34 | </parent> |
| 35 | <build> |
| 36 | <finalName>dbc-client</finalName> |
| 37 | |
| 38 | <plugins> |
| 39 | |
| 40 | |
| 41 | <plugin> |
| 42 | <groupId>org.sonatype.plugins</groupId> |
| 43 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 44 | <extensions>true</extensions> |
| 45 | <configuration> |
| 46 | <serverId>ecomp-staging</serverId> |
| 47 | <nexusUrl>${nexusproxy}</nexusUrl> |
| 48 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 49 | </configuration> |
| 50 | </plugin> |
| 51 | |
| 52 | <!-- for Distribution management --> |
| 53 | <plugin> |
| 54 | <groupId>org.apache.maven.plugins</groupId> |
| 55 | <artifactId>maven-site-plugin</artifactId> |
| 56 | <dependencies> |
| 57 | <dependency> |
| 58 | <groupId>org.apache.maven.wagon</groupId> |
| 59 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 60 | <version>2.10</version> |
| 61 | </dependency> |
| 62 | </dependencies> |
| 63 | </plugin> |
| 64 | |
| 65 | </plugins> |
| 66 | <pluginManagement> |
| 67 | <plugins> |
| 68 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| 69 | <plugin> |
| 70 | <groupId>org.eclipse.m2e</groupId> |
| 71 | <artifactId>lifecycle-mapping</artifactId> |
| 72 | <version>1.0.0</version> |
| 73 | <configuration> |
| 74 | <lifecycleMappingMetadata> |
| 75 | <pluginExecutions> |
| 76 | <pluginExecution> |
| 77 | <pluginExecutionFilter> |
| 78 | <groupId>org.apache.maven.plugins</groupId> |
| 79 | <artifactId>maven-dependency-plugin</artifactId> |
| 80 | <versionRange>[2.10,)</versionRange> |
| 81 | <phase>install</phase> |
| 82 | <goals> |
| 83 | <goal>copy-dependencies</goal> |
| 84 | </goals> |
| 85 | </pluginExecutionFilter> |
| 86 | <action> |
| 87 | <ignore/> |
| 88 | </action> |
| 89 | </pluginExecution> |
| 90 | </pluginExecutions> |
| 91 | </lifecycleMappingMetadata> |
| 92 | </configuration> |
| 93 | </plugin> |
| 94 | </plugins> |
| 95 | </pluginManagement> |
| 96 | </build> |
| 97 | <profiles> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 98 | <profile> |
| 99 | <id>docker</id> |
| 100 | <properties> |
| 101 | <skipDockerBuild>false</skipDockerBuild> |
| 102 | <skipDockerTag>false</skipDockerTag> |
| 103 | <skipTests>true</skipTests> |
| 104 | </properties> |
| 105 | <build> |
| 106 | <!-- Copy files to docker-stage to be included in image --> |
| 107 | <resources> |
dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 108 | <resource> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 109 | <targetPath>${basedir}/target/docker-stage</targetPath> |
| 110 | <directory>${basedir}/src/main/resources</directory> |
| 111 | <includes> |
| 112 | <include>Dockerfile</include> |
| 113 | </includes> |
dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 114 | </resource> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 115 | <resource> |
| 116 | <targetPath>${basedir}/target/docker-stage/opt/app/dbc-client/bin</targetPath> |
| 117 | <directory>${basedir}/misc</directory> |
| 118 | <includes> |
| 119 | <include>dbc-client</include> |
| 120 | </includes> |
dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 121 | </resource> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 122 | <resource> |
| 123 | <targetPath>${basedir}/target/docker-stage/opt/app/dmaapbc/etc</targetPath> |
| 124 | <directory>${basedir}</directory> |
| 125 | <includes> |
| 126 | <include>version.properties</include> |
| 127 | </includes> |
| 128 | </resource> |
| 129 | <resource> |
| 130 | <targetPath>${basedir}/target/docker-stage/opt/app/dbc-client/misc</targetPath> |
| 131 | <directory>${multiproject.basedir}/misc</directory> |
| 132 | <includes> |
| 133 | <include>cert-client-init.sh</include> |
dglFromAtt | a2f7b32 | 2019-03-22 19:42:37 +0000 | [diff] [blame^] | 134 | <include>aaf-ca.crt</include> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 135 | </includes> |
dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 136 | </resource> |
| 137 | </resources> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 138 | <plugins> |
| 139 | |
| 140 | <!-- Copy jar to docker-stage to be included in image --> |
| 141 | <plugin> |
| 142 | <artifactId>maven-resources-plugin</artifactId> |
| 143 | <version>2.7</version> |
| 144 | <executions> |
| 145 | <execution> |
| 146 | <id>copy-jar</id> |
| 147 | <phase>package</phase> |
| 148 | <goals> |
| 149 | <goal>copy-resources</goal> |
| 150 | </goals> |
| 151 | <configuration> |
| 152 | <outputDirectory>${basedir}/target/docker-stage/opt/app/dmaapbc/lib</outputDirectory> |
| 153 | <resources> |
| 154 | <resource> |
| 155 | <directory>${multiproject.basedir}/dbc-client/target</directory> |
| 156 | <includes> |
| 157 | <include>dbc-client.jar</include> |
| 158 | </includes> |
| 159 | </resource> |
| 160 | </resources> |
| 161 | </configuration> |
| 162 | </execution> |
| 163 | </executions> |
| 164 | </plugin> |
| 165 | |
| 166 | <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging --> |
| 167 | <plugin> |
| 168 | <groupId>org.codehaus.groovy.maven</groupId> |
| 169 | <artifactId>gmaven-plugin</artifactId> |
| 170 | <executions> |
| 171 | <execution> |
| 172 | <phase>validate</phase> |
| 173 | <goals> |
| 174 | <goal>execute</goal> |
| 175 | </goals> |
| 176 | <configuration> |
| 177 | <properties> |
| 178 | <ver>${project.version}</ver> |
| 179 | <timestamp>${maven.build.timestamp}</timestamp> |
| 180 | </properties> |
| 181 | <source> |
| 182 | println 'ver: ' + project.properties['ver']; |
| 183 | if ( project.properties['ver'].endsWith("-SNAPSHOT") ) { |
| 184 | project.properties['dockertag1']=project.properties['ver'] + "-latest"; |
| 185 | project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp']; |
| 186 | } else { |
| 187 | project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest"; |
| 188 | project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp']; |
| 189 | } |
| 190 | println 'docker tag 1: ' + project.properties['dockertag1']; |
| 191 | println 'docker tag 2: ' + project.properties['dockertag2']; |
| 192 | </source> |
| 193 | </configuration> |
| 194 | </execution> |
| 195 | </executions> |
| 196 | </plugin> |
| 197 | |
| 198 | <plugin> |
| 199 | <groupId>io.fabric8</groupId> |
| 200 | <artifactId>docker-maven-plugin</artifactId> |
| 201 | <version>0.28.0</version> |
| 202 | <configuration> |
| 203 | <verbose>${docker.verbose}</verbose> |
| 204 | <apiVersion>${docker.apiVersion}</apiVersion> |
| 205 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
sandovalfr | 55cba2c | 2019-03-14 17:07:14 -0600 | [diff] [blame] | 206 | <pushRegistry>${docker.push.registry}</pushRegistry> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 207 | <images> |
| 208 | <image> |
sandovalfr | 55cba2c | 2019-03-14 17:07:14 -0600 | [diff] [blame] | 209 | <name>${docker.image}</name> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 210 | <build> |
| 211 | <cleanup>try</cleanup> |
| 212 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 213 | <dockerFile>Dockerfile</dockerFile> |
| 214 | <tags> |
| 215 | <tag>${dockertag1}</tag> |
| 216 | <tag>${dockertag2}</tag> |
| 217 | </tags> |
| 218 | </build> |
| 219 | </image> |
| 220 | </images> |
| 221 | </configuration> |
| 222 | <executions> |
| 223 | <execution> |
| 224 | <id>generate-images</id> |
| 225 | <phase>install</phase> |
| 226 | <goals> |
| 227 | <goal>build</goal> |
| 228 | </goals> |
| 229 | </execution> |
| 230 | <execution> |
| 231 | <id>push-images</id> |
| 232 | <phase>deploy</phase> |
| 233 | <goals> |
| 234 | <goal>push</goal> |
| 235 | </goals> |
| 236 | </execution> |
| 237 | </executions> |
| 238 | </plugin> |
| 239 | </plugins> |
| 240 | </build> |
dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 241 | </profile> |
| 242 | </profiles> |
| 243 | <dependencyManagement> |
| 244 | </dependencyManagement> |
| 245 | |
| 246 | <properties> |
| 247 | <multiproject.basedir>${basedir}/..</multiproject.basedir> |
| 248 | <docker.maven.plugin.version>1.0.0</docker.maven.plugin.version> |
| 249 | <jersey.version>2.16</jersey.version> |
| 250 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 251 | <jettyVersion>9.4.12.RC2</jettyVersion> |
| 252 | <eelf.version>1.0.0</eelf.version> |
| 253 | <swagger.version>1.5.19</swagger.version> |
dglFromAtt | 8d21e71 | 2019-03-14 20:30:20 +0000 | [diff] [blame] | 254 | <artifact.version>1.0.4</artifact.version> |
dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 255 | <!-- SONAR --> |
| 256 | <jacoco.version>0.7.7.201606060606</jacoco.version> |
| 257 | <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version> |
| 258 | <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> |
| 259 | <!-- Default Sonar configuration --> |
| 260 | <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 261 | <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 262 | <!-- Note: This list should match jacoco-maven-plugin's exclusion list below --> |
| 263 | <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions> |
| 264 | |
| 265 | <!-- docker image --> |
| 266 | <docker.image>onap/dmaap/dbc-client</docker.image> |
| 267 | |
| 268 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 269 | <docker.push.registry>nexus3.onap.org:10003</docker.push.registry> |
| 270 | |
| 271 | <!-- for Distribution Management --> |
| 272 | <sitePath>/content/sites/site/org/onap/dmaap/dbc-client/${artifact.version}</sitePath> |
sandovalfr | 7f7da1e | 2019-03-04 12:17:58 -0500 | [diff] [blame] | 273 | |
| 274 | <timestamp>${maven.build.timestamp}</timestamp> |
| 275 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 276 | |
dglFromAtt | d0a915d | 2019-02-18 18:20:55 +0000 | [diff] [blame] | 277 | </properties> |
| 278 | <description>Packaging Platform (DMaaP) HTTP Client for Bus Controller Provisioning.</description> |
| 279 | </project> |