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> |
| 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 | <plugins> |
| 107 | <plugin> |
| 108 | <groupId>com.spotify</groupId> |
| 109 | <artifactId>docker-maven-plugin</artifactId> |
| 110 | <version>${docker.maven.plugin.version}</version> |
| 111 | <configuration> |
| 112 | <baseImage>alpine:3.8</baseImage> |
| 113 | <imageName>${onap.nexus.dockerregistry.daily}/${docker.image}</imageName> |
| 114 | <entryPoint>["./bin/dbc-client", "deploy"]</entryPoint> |
| 115 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 116 | <skipDockerBuild>false</skipDockerBuild> |
| 117 | <imageTags> |
| 118 | <imageTag>${artifact.version}</imageTag> |
| 119 | <imageTag>latest</imageTag> |
| 120 | </imageTags> |
| 121 | <volumes> |
| 122 | <volume>/opt/app/dbc-client/log</volume> |
| 123 | </volumes> |
| 124 | <forceTags>true</forceTags> |
| 125 | <user>root</user> |
| 126 | <resources> |
| 127 | <resource> |
| 128 | <targetPath>/opt/app/dmaapbc/etc</targetPath> |
| 129 | <directory>${multiproject.basedir}/dbc-client</directory> |
| 130 | <include>version.properties</include> |
| 131 | </resource> |
| 132 | <resource> |
| 133 | <targetPath>/opt/app/dbc-client/misc</targetPath> |
| 134 | <directory>${multiproject.basedir}/misc</directory> |
| 135 | <include>cert-client-init.sh</include> |
| 136 | </resource> |
| 137 | <resource> |
| 138 | <targetPath>/opt/app/dbc-client/bin</targetPath> |
| 139 | <directory>${multiproject.basedir}/dbc-client/misc</directory> |
| 140 | <include>dbc-client</include> |
| 141 | </resource> |
| 142 | </resources> |
| 143 | <runs> |
| 144 | <run> apk add --no-cache curl </run> |
| 145 | <run>chmod +x /opt/app/dbc-client/misc/cert-client-init.sh</run> |
| 146 | <run>chmod +x /opt/app/dbc-client/bin/*</run> |
| 147 | <run>mkdir /opt/app/dbc-client/logs</run> |
| 148 | </runs> |
| 149 | <workdir>/opt/app/dbc-client</workdir> |
| 150 | </configuration> |
| 151 | <executions> |
| 152 | <execution> |
| 153 | <id>default</id> |
| 154 | <goals> |
| 155 | <goal>build</goal> |
| 156 | <goal>push</goal> |
| 157 | </goals> |
| 158 | </execution> |
| 159 | </executions> |
| 160 | </plugin> |
| 161 | </plugins> |
| 162 | </build> |
| 163 | </profile> |
| 164 | </profiles> |
| 165 | <dependencyManagement> |
| 166 | </dependencyManagement> |
| 167 | |
| 168 | <properties> |
| 169 | <multiproject.basedir>${basedir}/..</multiproject.basedir> |
| 170 | <docker.maven.plugin.version>1.0.0</docker.maven.plugin.version> |
| 171 | <jersey.version>2.16</jersey.version> |
| 172 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 173 | <jettyVersion>9.4.12.RC2</jettyVersion> |
| 174 | <eelf.version>1.0.0</eelf.version> |
| 175 | <swagger.version>1.5.19</swagger.version> |
| 176 | <artifact.version>1.0.2</artifact.version> |
| 177 | <!-- SONAR --> |
| 178 | <jacoco.version>0.7.7.201606060606</jacoco.version> |
| 179 | <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version> |
| 180 | <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> |
| 181 | <!-- Default Sonar configuration --> |
| 182 | <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 183 | <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 184 | <!-- Note: This list should match jacoco-maven-plugin's exclusion list below --> |
| 185 | <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions> |
| 186 | |
| 187 | <!-- docker image --> |
| 188 | <docker.image>onap/dmaap/dbc-client</docker.image> |
| 189 | |
| 190 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 191 | <docker.push.registry>nexus3.onap.org:10003</docker.push.registry> |
| 192 | |
| 193 | <!-- for Distribution Management --> |
| 194 | <sitePath>/content/sites/site/org/onap/dmaap/dbc-client/${artifact.version}</sitePath> |
| 195 | </properties> |
| 196 | <description>Packaging Platform (DMaaP) HTTP Client for Bus Controller Provisioning.</description> |
| 197 | </project> |