1 <!-- ============LICENSE_START=======================================================
2 org.onap.dmaap ================================================================================
3 Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
11 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
12 <project xmlns="http://maven.apache.org/POM/4.0.0"
13 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
15 <modelVersion>4.0.0</modelVersion>
17 <groupId>org.onap.oparent</groupId>
18 <artifactId>oparent</artifactId>
19 <version>3.2.0</version>
22 <groupId>org.onap.dmaap.kafka</groupId>
23 <artifactId>kafka11aaf</artifactId>
24 <version>1.1.0-SNAPSHOT</version>
25 <name>dmaap-kafka</name>
28 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29 <timestamp>${maven.build.timestamp}</timestamp>
30 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
32 /content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}
34 <skip.docker.build>true</skip.docker.build>
35 <skip.docker.push>true</skip.docker.push>
36 <nexusproxy>https://nexus.onap.org</nexusproxy>
37 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
38 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
39 <sonar.language>java</sonar.language>
40 <sonar.skip>false</sonar.skip>
41 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
42 </sonar.surefire.reportsPath>
43 <sonar.coverage.jacoco.xmlReportPaths>
44 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
45 </sonar.coverage.jacoco.xmlReportPaths>
46 <sonar.projectVersion>${project.version}</sonar.projectVersion>
47 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**
49 <powermock.version>1.6.4</powermock.version>
52 <distributionManagement>
55 <url>dav:${nexusproxy}${sitePath}</url>
57 </distributionManagement>
60 <!-- Copy files to docker-stage to be included in image -->
63 <targetPath>${basedir}/target/docker-stage</targetPath>
64 <directory>${basedir}/src/main/docker</directory>
67 <directory>${basedir}/src/main/resources</directory>
72 <groupId>org.jacoco</groupId>
73 <artifactId>jacoco-maven-plugin</artifactId>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-surefire-plugin</artifactId>
83 <skipTests>false</skipTests>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-failsafe-plugin</artifactId>
91 --illegal-access=permit
96 <artifactId>maven-dependency-plugin</artifactId>
100 <phase>package</phase>
105 <outputDirectory>target</outputDirectory>
108 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
109 <artifactId>dmaapMMAgent</artifactId>
110 <version>1.1.2</version>
111 <destFileName>dmaapMMAgent.jar</destFileName>
119 <artifactId>maven-resources-plugin</artifactId>
120 <version>2.7</version>
124 <phase>install</phase>
126 <goal>copy-resources</goal>
129 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
132 <directory>${basedir}/target</directory>
134 <include>dmaapMMAgent.jar</include>
135 <include>kafka11aaf.jar</include>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-shade-plugin</artifactId>
146 <version>3.2.4</version>
149 <phase>package</phase>
154 <finalName>${project.artifactId}</finalName>
161 <artifact>*:*</artifact>
163 <exclude>META-INF/*.SF</exclude>
164 <exclude>META-INF/*.DSA</exclude>
165 <exclude>META-INF/*.RSA</exclude>
174 <artifactId>maven-checkstyle-plugin</artifactId>
177 <id>onap-java-style</id>
179 <consoleOutput>false</consoleOutput>
189 <groupId>org.onap.aaf.authz</groupId>
190 <artifactId>aaf-cadi-aaf</artifactId>
191 <version>2.7.4</version>
194 <groupId>org.apache.kafka</groupId>
195 <artifactId>kafka_2.13</artifactId>
196 <version>2.8.0</version>
199 <groupId>org.powermock</groupId>
200 <artifactId>powermock-api-mockito</artifactId>
201 <version>${powermock.version}</version>
205 <groupId>org.powermock</groupId>
206 <artifactId>powermock-module-junit4</artifactId>
207 <version>${powermock.version}</version>
211 <groupId>org.powermock</groupId>
212 <artifactId>powermock-module-junit4-rule</artifactId>
213 <version>${powermock.version}</version>
217 <groupId>org.mockito</groupId>
218 <artifactId>mockito-core</artifactId>
219 <version>1.10.19</version>
228 <skip.docker.build>false</skip.docker.build>
229 <skip.docker.tag>false</skip.docker.tag>
230 <skip.docker.push>false</skip.docker.push>
235 <groupId>org.codehaus.groovy.maven</groupId>
236 <artifactId>gmaven-plugin</artifactId>
237 <version>1.0</version>
240 <phase>validate</phase>
246 <ver>${project.version}</ver>
247 <timestamp>${maven.build.timestamp}</timestamp>
250 println project.properties['ver'];
251 if (project.properties['ver'].endsWith("-SNAPSHOT")) {
252 project.properties['dockertag1'] = project.properties['ver'] +
254 project.properties['dockertag2'] = project.properties['ver'] +
255 "-" + project.properties['timestamp'];
257 project.properties['dockertag1'] = project.properties['ver'] +
259 project.properties['dockertag2'] = project.properties['ver'] +
260 "-STAGING-" + project.properties['timestamp'];
262 println 'docker tag 1: ' + project.properties['dockertag1'];
263 println 'docker tag 2: ' + project.properties['dockertag2'];
270 <groupId>io.fabric8</groupId>
271 <artifactId>docker-maven-plugin</artifactId>
272 <version>0.28.0</version>
274 <pullRegistry>${docker.pull.registry}</pullRegistry>
275 <pushRegistry>${docker.push.registry}</pushRegistry>
278 <name>onap/dmaap/kafka111</name>
280 <cleanup>try</cleanup>
281 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
282 <dockerFile>Dockerfile</dockerFile>
284 <tag>${dockertag1}</tag>
285 <tag>${dockertag2}</tag>
293 <id>generate-images</id>
294 <phase>install</phase>
301 <phase>deploy</phase>