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>
50 <maven.compiler.source>11</maven.compiler.source>
51 <maven.compiler.target>11</maven.compiler.target>
54 <distributionManagement>
57 <url>dav:${nexusproxy}${sitePath}</url>
59 </distributionManagement>
62 <!-- Copy files to docker-stage to be included in image -->
65 <targetPath>${basedir}/target/docker-stage</targetPath>
66 <directory>${basedir}/src/main/docker</directory>
69 <directory>${basedir}/src/main/resources</directory>
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-compiler-plugin</artifactId>
77 <source>${maven.compiler.source}</source>
78 <target>${maven.compiler.target}</target>
82 <groupId>org.jacoco</groupId>
83 <artifactId>jacoco-maven-plugin</artifactId>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-surefire-plugin</artifactId>
93 <skipTests>false</skipTests>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-failsafe-plugin</artifactId>
101 --illegal-access=permit
106 <artifactId>maven-dependency-plugin</artifactId>
110 <phase>package</phase>
115 <outputDirectory>target</outputDirectory>
118 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
119 <artifactId>dmaapMMAgent</artifactId>
120 <version>1.1.2</version>
121 <destFileName>dmaapMMAgent.jar</destFileName>
129 <artifactId>maven-resources-plugin</artifactId>
130 <version>2.7</version>
134 <phase>install</phase>
136 <goal>copy-resources</goal>
139 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
142 <directory>${basedir}/target</directory>
144 <include>dmaapMMAgent.jar</include>
145 <include>kafka11aaf.jar</include>
154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-shade-plugin</artifactId>
156 <version>3.2.4</version>
159 <phase>package</phase>
164 <finalName>${project.artifactId}</finalName>
171 <artifact>*:*</artifact>
173 <exclude>META-INF/*.SF</exclude>
174 <exclude>META-INF/*.DSA</exclude>
175 <exclude>META-INF/*.RSA</exclude>
184 <artifactId>maven-checkstyle-plugin</artifactId>
187 <id>onap-java-style</id>
189 <consoleOutput>false</consoleOutput>
195 <artifactId>maven-deploy-plugin</artifactId>
196 <version>3.0.0-M1</version>
206 <groupId>org.onap.aaf.authz</groupId>
207 <artifactId>aaf-cadi-aaf</artifactId>
208 <version>2.7.4</version>
211 <groupId>org.apache.kafka</groupId>
212 <artifactId>kafka_2.13</artifactId>
213 <version>2.8.0</version>
216 <groupId>org.powermock</groupId>
217 <artifactId>powermock-api-mockito</artifactId>
218 <version>${powermock.version}</version>
222 <groupId>org.powermock</groupId>
223 <artifactId>powermock-module-junit4</artifactId>
224 <version>${powermock.version}</version>
228 <groupId>org.powermock</groupId>
229 <artifactId>powermock-module-junit4-rule</artifactId>
230 <version>${powermock.version}</version>
234 <groupId>org.mockito</groupId>
235 <artifactId>mockito-core</artifactId>
236 <version>1.10.19</version>
245 <skip.docker.build>false</skip.docker.build>
246 <skip.docker.tag>false</skip.docker.tag>
247 <skip.docker.push>false</skip.docker.push>
252 <groupId>org.codehaus.groovy.maven</groupId>
253 <artifactId>gmaven-plugin</artifactId>
254 <version>1.0</version>
257 <phase>validate</phase>
263 <ver>${project.version}</ver>
264 <timestamp>${maven.build.timestamp}</timestamp>
267 println project.properties['ver'];
268 if (project.properties['ver'].endsWith("-SNAPSHOT")) {
269 project.properties['dockertag1'] = project.properties['ver'] +
271 project.properties['dockertag2'] = project.properties['ver'] +
272 "-" + project.properties['timestamp'];
274 project.properties['dockertag1'] = project.properties['ver'] +
276 project.properties['dockertag2'] = project.properties['ver'] +
277 "-STAGING-" + project.properties['timestamp'];
279 println 'docker tag 1: ' + project.properties['dockertag1'];
280 println 'docker tag 2: ' + project.properties['dockertag2'];
287 <groupId>io.fabric8</groupId>
288 <artifactId>docker-maven-plugin</artifactId>
289 <version>0.28.0</version>
291 <pullRegistry>${docker.pull.registry}</pullRegistry>
292 <pushRegistry>${docker.push.registry}</pushRegistry>
295 <name>onap/dmaap/kafka111</name>
297 <cleanup>try</cleanup>
298 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
299 <dockerFile>Dockerfile</dockerFile>
301 <tag>${dockertag1}</tag>
302 <tag>${dockertag2}</tag>
310 <id>generate-images</id>
311 <phase>install</phase>
318 <phase>deploy</phase>