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>1.2.1</version>
22 <groupId>org.onap.dmaap.kafka</groupId>
23 <artifactId>kafka11aaf</artifactId>
24 <version>0.0.4-SNAPSHOT</version>
25 <name>dmaap-kafka11aaf</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>
54 <groupId>org.apache.maven.plugins</groupId>
55 <artifactId>maven-surefire-plugin</artifactId>
56 <version>2.12.4</version>
59 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
61 <!-- <skipTests>true</skipTests> -->
65 <groupId>org.codehaus.mojo</groupId>
66 <artifactId>cobertura-maven-plugin</artifactId>
67 <version>2.7</version>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-site-plugin</artifactId>
78 <version>3.6</version>
81 <groupId>org.apache.maven.wagon</groupId>
82 <artifactId>wagon-webdav-jackrabbit</artifactId>
83 <version>2.10</version>
88 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId>
89 <version>3.0.2</version> </plugin> -->
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-source-plugin</artifactId>
94 <version>3.0.0</version>
97 <id>attach-sources</id>
99 <goal>jar-no-fork</goal>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-release-plugin</artifactId>
107 <version>2.5.3</version>
109 <autoVersionSubmodules>true</autoVersionSubmodules>
110 <checkModificationExcludes>
111 </checkModificationExcludes>
115 <groupId>org.apache.maven.scm</groupId>
116 <artifactId>maven-scm-provider-gitexe</artifactId>
117 <version>1.9.4</version>
123 <groupId>org.sonatype.plugins</groupId>
124 <artifactId>nexus-staging-maven-plugin</artifactId>
125 <extensions>false</extensions>
128 <id>injected-nexus-deploy</id>
134 <artifactId>maven-deploy-plugin</artifactId>
135 <version>2.8</version>
138 <id>default-deploy</id>
150 <artifactId>maven-dependency-plugin</artifactId>
154 <phase>package</phase>
159 <outputDirectory>target</outputDirectory>
160 <encoding>UTF-8</encoding>
163 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
164 <artifactId>dmaapMMAgent</artifactId>
165 <version>1.1.1</version>
166 <destFileName>dmaapMMAgent.jar</destFileName>
173 <!-- Copy jar to docker-stage to be included in image -->
175 <artifactId>maven-resources-plugin</artifactId>
176 <version>2.7</version>
180 <phase>install</phase>
182 <goal>copy-resources</goal>
185 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
188 <directory>${basedir}/target</directory>
190 <include>dmaapMMAgent.jar</include>
191 <include>kafka11aaf-jar-with-dependencies.jar</include>
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-assembly-plugin</artifactId>
202 <version>2.4.1</version>
204 <!-- get all project dependencies -->
206 <descriptorRef>jar-with-dependencies</descriptorRef>
208 <!-- MainClass in mainfest make a executable jar -->
209 <finalName>kafka11aaf</finalName>
213 <id>make-assembly</id>
214 <!-- bind to the packaging phase -->
215 <phase>package</phase>
227 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
228 <timestamp>${maven.build.timestamp}</timestamp>
229 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
230 <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
231 <skip.docker.build>true</skip.docker.build>
232 <skip.docker.push>true</skip.docker.push>
233 <nexusproxy>https://nexus.onap.org</nexusproxy>
234 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
235 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
238 <!-- Distribution management -->
239 <distributionManagement>
242 <url>dav:${nexusproxy}${sitePath}</url>
244 </distributionManagement>
248 <groupId>org.onap.aaf.authz</groupId>
249 <artifactId>aaf-cadi-aaf</artifactId>
250 <version>2.1.2</version>
253 <groupId>org.slf4j</groupId>
254 <artifactId>slf4j-api</artifactId>
255 <version>1.7.2</version>
258 <groupId>org.slf4j</groupId>
259 <artifactId>slf4j-simple</artifactId>
260 <version>1.7.2</version>
261 <scope>runtime</scope>
264 <groupId>org.apache.kafka</groupId>
265 <artifactId>kafka_2.11</artifactId>
266 <version>0.11.0.3</version>
269 <groupId>org.powermock</groupId>
270 <artifactId>powermock-api-mockito</artifactId>
271 <version>1.6.4</version>
276 <groupId>org.powermock</groupId>
277 <artifactId>powermock-module-junit4</artifactId>
278 <version>1.6.4</version>
283 <groupId>org.powermock</groupId>
284 <artifactId>powermock-module-junit4-rule</artifactId>
285 <version>1.6.4</version>
289 <groupId>org.mockito</groupId>
290 <artifactId>mockito-core</artifactId>
291 <version>1.10.19</version>
300 <skip.docker.build>false</skip.docker.build>
301 <skip.docker.tag>false</skip.docker.tag>
302 <skip.docker.push>false</skip.docker.push>
307 <groupId>org.codehaus.groovy.maven</groupId>
308 <artifactId>gmaven-plugin</artifactId>
311 <phase>validate</phase>
317 <ver>${project.version}</ver>
318 <timestamp>${maven.build.timestamp}</timestamp>
321 println project.properties['ver'];
322 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
323 project.properties['dockertag1']=project.properties['ver'] + "-latest";
324 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
326 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
327 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
329 println 'docker tag 1: ' + project.properties['dockertag1'];
330 println 'docker tag 2: ' + project.properties['dockertag2'];
336 <!-- build docker image -->
338 <groupId>io.fabric8</groupId>
339 <artifactId>docker-maven-plugin</artifactId>
340 <version>0.28.0</version>
342 <verbose>${docker.verbose}</verbose>
343 <apiVersion>${docker.apiVersion}</apiVersion>
344 <pullRegistry>${docker.pull.registry}</pullRegistry>
345 <pushRegistry>${docker.push.registry}</pushRegistry>
348 <name>onap/dmaap/kafka01101</name>
350 <cleanup>try</cleanup>
351 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
352 <dockerFile>Dockerfile</dockerFile>
354 <tag>${dockertag1}</tag>
355 <tag>${dockertag2}</tag>
363 <id>generate-images</id>
364 <phase>install</phase>
371 <phase>deploy</phase>