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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
17 <groupId>org.onap.oparent</groupId>
18 <artifactId>oparent</artifactId>
19 <version>2.1.0</version>
22 <groupId>org.onap.dmaap.kafka</groupId>
23 <artifactId>kafka11aaf</artifactId>
24 <version>1.0.3-SNAPSHOT</version>
25 <name>dmaap-kafka</name>
28 <name>Apache License Version 2.0</name>
34 <name>Sunil Unnava</name>
36 <organization>ATT</organization>
37 <organizationUrl>www.att.com</organizationUrl>
42 <!-- Copy files to docker-stage to be included in image -->
45 <targetPath>${basedir}/target/docker-stage</targetPath>
46 <directory>${basedir}/src/main/docker</directory>
49 <directory>${basedir}/src/main/resources</directory>
56 <groupId>org.apache.maven.plugins</groupId>
57 <artifactId>maven-surefire-plugin</artifactId>
58 <version>2.12.4</version>
61 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
63 <!-- <skipTests>true</skipTests> -->
67 <groupId>org.codehaus.mojo</groupId>
68 <artifactId>cobertura-maven-plugin</artifactId>
69 <version>2.7</version>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-site-plugin</artifactId>
80 <version>3.6</version>
83 <groupId>org.apache.maven.wagon</groupId>
84 <artifactId>wagon-webdav-jackrabbit</artifactId>
85 <version>2.10</version>
90 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId>
91 <version>3.0.2</version> </plugin> -->
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-source-plugin</artifactId>
96 <version>3.0.0</version>
99 <id>attach-sources</id>
101 <goal>jar-no-fork</goal>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-release-plugin</artifactId>
109 <version>2.5.3</version>
111 <autoVersionSubmodules>true</autoVersionSubmodules>
112 <checkModificationExcludes>
113 </checkModificationExcludes>
117 <groupId>org.apache.maven.scm</groupId>
118 <artifactId>maven-scm-provider-gitexe</artifactId>
119 <version>1.9.4</version>
125 <artifactId>maven-deploy-plugin</artifactId>
126 <version>2.8</version>
129 <id>default-deploy</id>
141 <artifactId>maven-dependency-plugin</artifactId>
145 <phase>package</phase>
150 <outputDirectory>target</outputDirectory>
151 <encoding>UTF-8</encoding>
154 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
155 <artifactId>dmaapMMAgent</artifactId>
156 <version>1.1.2</version>
157 <destFileName>dmaapMMAgent.jar</destFileName>
165 <artifactId>maven-resources-plugin</artifactId>
166 <version>2.7</version>
170 <phase>install</phase>
172 <goal>copy-resources</goal>
175 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
178 <directory>${basedir}/target</directory>
180 <include>dmaapMMAgent.jar</include>
181 <include>kafka11aaf-jar-with-dependencies.jar</include>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-assembly-plugin</artifactId>
192 <version>2.4.1</version>
194 <!-- get all project dependencies -->
196 <descriptorRef>jar-with-dependencies</descriptorRef>
198 <!-- MainClass in mainfest make a executable jar -->
199 <finalName>kafka11aaf</finalName>
203 <id>make-assembly</id>
204 <!-- bind to the packaging phase -->
205 <phase>package</phase>
217 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
218 <timestamp>${maven.build.timestamp}</timestamp>
219 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
220 <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
221 <skip.docker.build>true</skip.docker.build>
222 <skip.docker.push>true</skip.docker.push>
223 <nexusproxy>https://nexus.onap.org</nexusproxy>
224 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
225 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
228 <!-- Distribution management -->
229 <distributionManagement>
232 <url>dav:${nexusproxy}${sitePath}</url>
234 </distributionManagement>
238 <groupId>org.onap.aaf.authz</groupId>
239 <artifactId>aaf-cadi-aaf</artifactId>
240 <version>2.1.2</version>
243 <groupId>org.slf4j</groupId>
244 <artifactId>slf4j-api</artifactId>
245 <version>1.7.2</version>
248 <groupId>org.slf4j</groupId>
249 <artifactId>slf4j-simple</artifactId>
250 <version>1.7.2</version>
251 <scope>runtime</scope>
254 <groupId>org.apache.kafka</groupId>
255 <artifactId>kafka_2.11</artifactId>
256 <version>2.3.0</version>
257 <scope>provided</scope>
261 <groupId>org.powermock</groupId>
262 <artifactId>powermock-api-mockito</artifactId>
263 <version>1.6.4</version>
268 <groupId>org.powermock</groupId>
269 <artifactId>powermock-module-junit4</artifactId>
270 <version>1.6.4</version>
275 <groupId>org.powermock</groupId>
276 <artifactId>powermock-module-junit4-rule</artifactId>
277 <version>1.6.4</version>
281 <groupId>org.mockito</groupId>
282 <artifactId>mockito-core</artifactId>
283 <version>1.10.19</version>
292 <skip.docker.build>false</skip.docker.build>
293 <skip.docker.tag>false</skip.docker.tag>
294 <skip.docker.push>false</skip.docker.push>
299 <groupId>org.codehaus.groovy.maven</groupId>
300 <artifactId>gmaven-plugin</artifactId>
303 <phase>validate</phase>
309 <ver>${project.version}</ver>
310 <timestamp>${maven.build.timestamp}</timestamp>
313 println project.properties['ver'];
314 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
315 project.properties['dockertag1']=project.properties['ver'] +
317 project.properties['dockertag2']=project.properties['ver'] +
318 "-" + project.properties['timestamp'];
320 project.properties['dockertag1']=project.properties['ver'] +
322 project.properties['dockertag2']=project.properties['ver'] +
323 "-STAGING-" + project.properties['timestamp'];
325 println 'docker tag 1: ' + project.properties['dockertag1'];
326 println 'docker tag 2: ' + project.properties['dockertag2'];
332 <!-- build docker image -->
334 <groupId>io.fabric8</groupId>
335 <artifactId>docker-maven-plugin</artifactId>
336 <version>0.28.0</version>
338 <verbose>${docker.verbose}</verbose>
339 <apiVersion>${docker.apiVersion}</apiVersion>
340 <pullRegistry>${docker.pull.registry}</pullRegistry>
341 <pushRegistry>${docker.push.registry}</pushRegistry>
344 <name>onap/dmaap/kafka111</name>
346 <cleanup>try</cleanup>
347 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
348 <dockerFile>Dockerfile</dockerFile>
350 <tag>${dockertag1}</tag>
351 <tag>${dockertag2}</tag>
359 <id>generate-images</id>
360 <phase>install</phase>
367 <phase>deploy</phase>