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.5-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.sonarsource.scanner.maven</groupId>
57 <artifactId>sonar-maven-plugin</artifactId>
58 <version>3.6.0.1398</version>
61 <groupId>org.jacoco</groupId>
62 <artifactId>jacoco-maven-plugin</artifactId>
65 <id>prepare-agent</id>
67 <goal>prepare-agent</goal>
76 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
77 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-surefire-plugin</artifactId>
85 <version>2.12.4</version>
88 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
90 <!-- <skipTests>true</skipTests> -->
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-site-plugin</artifactId>
96 <version>3.6</version>
99 <groupId>org.apache.maven.wagon</groupId>
100 <artifactId>wagon-webdav-jackrabbit</artifactId>
101 <version>2.10</version>
106 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId>
107 <version>3.0.2</version> </plugin> -->
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-source-plugin</artifactId>
112 <version>3.0.0</version>
115 <id>attach-sources</id>
117 <goal>jar-no-fork</goal>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-release-plugin</artifactId>
125 <version>2.5.3</version>
127 <autoVersionSubmodules>true</autoVersionSubmodules>
128 <checkModificationExcludes>
129 </checkModificationExcludes>
133 <groupId>org.apache.maven.scm</groupId>
134 <artifactId>maven-scm-provider-gitexe</artifactId>
135 <version>1.9.4</version>
141 <artifactId>maven-deploy-plugin</artifactId>
142 <version>2.8</version>
145 <id>default-deploy</id>
157 <artifactId>maven-dependency-plugin</artifactId>
161 <phase>package</phase>
166 <outputDirectory>target</outputDirectory>
167 <encoding>UTF-8</encoding>
170 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
171 <artifactId>dmaapMMAgent</artifactId>
172 <version>1.1.2</version>
173 <destFileName>dmaapMMAgent.jar</destFileName>
181 <artifactId>maven-resources-plugin</artifactId>
182 <version>2.7</version>
186 <phase>install</phase>
188 <goal>copy-resources</goal>
191 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
194 <directory>${basedir}/target</directory>
196 <include>dmaapMMAgent.jar</include>
197 <include>kafka11aaf-jar-with-dependencies.jar</include>
206 <groupId>org.apache.maven.plugins</groupId>
207 <artifactId>maven-assembly-plugin</artifactId>
208 <version>2.4.1</version>
210 <!-- get all project dependencies -->
212 <descriptorRef>jar-with-dependencies</descriptorRef>
214 <!-- MainClass in mainfest make a executable jar -->
215 <finalName>kafka11aaf</finalName>
219 <id>make-assembly</id>
220 <!-- bind to the packaging phase -->
221 <phase>package</phase>
233 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
234 <timestamp>${maven.build.timestamp}</timestamp>
235 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
236 <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
237 <skip.docker.build>true</skip.docker.build>
238 <skip.docker.push>true</skip.docker.push>
239 <nexusproxy>https://nexus.onap.org</nexusproxy>
240 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
241 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
242 <sonar.language>java</sonar.language>
243 <sonar.skip>false</sonar.skip>
244 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
245 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
246 <sonar.projectVersion>${project.version}</sonar.projectVersion>
249 <!-- Distribution management -->
250 <distributionManagement>
253 <url>dav:${nexusproxy}${sitePath}</url>
255 </distributionManagement>
259 <groupId>org.onap.aaf.authz</groupId>
260 <artifactId>aaf-cadi-aaf</artifactId>
261 <version>2.1.2</version>
264 <groupId>org.slf4j</groupId>
265 <artifactId>slf4j-api</artifactId>
266 <version>1.7.2</version>
269 <groupId>org.slf4j</groupId>
270 <artifactId>slf4j-simple</artifactId>
271 <version>1.7.2</version>
272 <scope>runtime</scope>
275 <groupId>org.apache.kafka</groupId>
276 <artifactId>kafka_2.11</artifactId>
277 <version>2.3.0</version>
278 <scope>provided</scope>
282 <groupId>org.powermock</groupId>
283 <artifactId>powermock-api-mockito</artifactId>
284 <version>1.6.4</version>
289 <groupId>org.powermock</groupId>
290 <artifactId>powermock-module-junit4</artifactId>
291 <version>1.6.4</version>
296 <groupId>org.powermock</groupId>
297 <artifactId>powermock-module-junit4-rule</artifactId>
298 <version>1.6.4</version>
302 <groupId>org.mockito</groupId>
303 <artifactId>mockito-core</artifactId>
304 <version>1.10.19</version>
313 <skip.docker.build>false</skip.docker.build>
314 <skip.docker.tag>false</skip.docker.tag>
315 <skip.docker.push>false</skip.docker.push>
320 <groupId>org.codehaus.groovy.maven</groupId>
321 <artifactId>gmaven-plugin</artifactId>
324 <phase>validate</phase>
330 <ver>${project.version}</ver>
331 <timestamp>${maven.build.timestamp}</timestamp>
334 println project.properties['ver'];
335 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
336 project.properties['dockertag1']=project.properties['ver'] +
338 project.properties['dockertag2']=project.properties['ver'] +
339 "-" + project.properties['timestamp'];
341 project.properties['dockertag1']=project.properties['ver'] +
343 project.properties['dockertag2']=project.properties['ver'] +
344 "-STAGING-" + project.properties['timestamp'];
346 println 'docker tag 1: ' + project.properties['dockertag1'];
347 println 'docker tag 2: ' + project.properties['dockertag2'];
353 <!-- build docker image -->
355 <groupId>io.fabric8</groupId>
356 <artifactId>docker-maven-plugin</artifactId>
357 <version>0.28.0</version>
359 <verbose>${docker.verbose}</verbose>
360 <apiVersion>${docker.apiVersion}</apiVersion>
361 <pullRegistry>${docker.pull.registry}</pullRegistry>
362 <pushRegistry>${docker.push.registry}</pushRegistry>
365 <name>onap/dmaap/kafka111</name>
367 <cleanup>try</cleanup>
368 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
369 <dockerFile>Dockerfile</dockerFile>
371 <tag>${dockertag1}</tag>
372 <tag>${dockertag2}</tag>
380 <id>generate-images</id>
381 <phase>install</phase>
388 <phase>deploy</phase>