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.1-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 <docker.nocache>true</docker.nocache>
37 <nexusproxy>https://nexus.onap.org</nexusproxy>
38 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
39 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
40 <sonar.language>java</sonar.language>
41 <sonar.skip>false</sonar.skip>
42 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
43 </sonar.surefire.reportsPath>
44 <sonar.coverage.jacoco.xmlReportPaths>
45 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
46 </sonar.coverage.jacoco.xmlReportPaths>
47 <sonar.projectVersion>${project.version}</sonar.projectVersion>
48 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**
50 <powermock.version>1.6.4</powermock.version>
51 <maven.compiler.source>11</maven.compiler.source>
52 <maven.compiler.target>11</maven.compiler.target>
55 <distributionManagement>
58 <url>dav:${nexusproxy}${sitePath}</url>
60 </distributionManagement>
63 <!-- Copy files to docker-stage to be included in image -->
66 <targetPath>${basedir}/target/docker-stage</targetPath>
67 <directory>${basedir}/src/main/docker</directory>
70 <directory>${basedir}/src/main/resources</directory>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-compiler-plugin</artifactId>
78 <source>${maven.compiler.source}</source>
79 <target>${maven.compiler.target}</target>
83 <groupId>org.jacoco</groupId>
84 <artifactId>jacoco-maven-plugin</artifactId>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-surefire-plugin</artifactId>
94 <skipTests>false</skipTests>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-failsafe-plugin</artifactId>
102 --illegal-access=permit
107 <artifactId>maven-dependency-plugin</artifactId>
111 <phase>package</phase>
116 <outputDirectory>target</outputDirectory>
119 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
120 <artifactId>dmaapMMAgent</artifactId>
121 <version>1.1.2</version>
122 <destFileName>dmaapMMAgent.jar</destFileName>
130 <artifactId>maven-resources-plugin</artifactId>
131 <version>2.7</version>
135 <phase>install</phase>
137 <goal>copy-resources</goal>
140 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
143 <directory>${basedir}/target</directory>
145 <include>dmaapMMAgent.jar</include>
146 <include>kafka11aaf.jar</include>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-shade-plugin</artifactId>
157 <version>3.2.4</version>
160 <phase>package</phase>
165 <finalName>${project.artifactId}</finalName>
172 <artifact>*:*</artifact>
174 <exclude>META-INF/*.SF</exclude>
175 <exclude>META-INF/*.DSA</exclude>
176 <exclude>META-INF/*.RSA</exclude>
185 <artifactId>maven-checkstyle-plugin</artifactId>
188 <id>onap-java-style</id>
190 <consoleOutput>false</consoleOutput>
196 <artifactId>maven-deploy-plugin</artifactId>
197 <version>3.0.0-M1</version>
207 <groupId>org.onap.aaf.authz</groupId>
208 <artifactId>aaf-cadi-aaf</artifactId>
209 <version>2.7.4</version>
212 <groupId>org.apache.kafka</groupId>
213 <artifactId>kafka_2.13</artifactId>
214 <version>2.8.0</version>
217 <groupId>org.powermock</groupId>
218 <artifactId>powermock-api-mockito</artifactId>
219 <version>${powermock.version}</version>
223 <groupId>org.powermock</groupId>
224 <artifactId>powermock-module-junit4</artifactId>
225 <version>${powermock.version}</version>
229 <groupId>org.powermock</groupId>
230 <artifactId>powermock-module-junit4-rule</artifactId>
231 <version>${powermock.version}</version>
235 <groupId>org.mockito</groupId>
236 <artifactId>mockito-core</artifactId>
237 <version>1.10.19</version>
246 <skip.docker.build>false</skip.docker.build>
247 <skip.docker.tag>false</skip.docker.tag>
248 <skip.docker.push>false</skip.docker.push>
253 <groupId>org.codehaus.groovy.maven</groupId>
254 <artifactId>gmaven-plugin</artifactId>
255 <version>1.0</version>
258 <phase>validate</phase>
264 <ver>${project.version}</ver>
265 <timestamp>${maven.build.timestamp}</timestamp>
268 println project.properties['ver'];
269 if (project.properties['ver'].endsWith("-SNAPSHOT")) {
270 project.properties['dockertag1'] = project.properties['ver'] +
272 project.properties['dockertag2'] = project.properties['ver'] +
273 "-" + project.properties['timestamp'];
275 project.properties['dockertag1'] = project.properties['ver'] +
277 project.properties['dockertag2'] = project.properties['ver'] +
278 "-STAGING-" + project.properties['timestamp'];
280 println 'docker tag 1: ' + project.properties['dockertag1'];
281 println 'docker tag 2: ' + project.properties['dockertag2'];
288 <groupId>io.fabric8</groupId>
289 <artifactId>docker-maven-plugin</artifactId>
290 <version>0.28.0</version>
292 <pullRegistry>${docker.pull.registry}</pullRegistry>
293 <pushRegistry>${docker.push.registry}</pushRegistry>
296 <name>onap/dmaap/kafka111</name>
298 <nocache>true</nocache>
299 <cleanup>try</cleanup>
300 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
301 <dockerFile>Dockerfile</dockerFile>
303 <tag>${dockertag1}</tag>
304 <tag>${dockertag2}</tag>
312 <id>generate-images</id>
313 <phase>install</phase>
320 <phase>deploy</phase>