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.3-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>
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-surefire-plugin</artifactId>
46 <version>2.12.4</version>
49 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
51 <!-- <skipTests>true</skipTests> -->
55 <groupId>org.codehaus.mojo</groupId>
56 <artifactId>cobertura-maven-plugin</artifactId>
57 <version>2.7</version>
66 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-site-plugin</artifactId>
68 <version>3.6</version>
71 <groupId>org.apache.maven.wagon</groupId>
72 <artifactId>wagon-webdav-jackrabbit</artifactId>
73 <version>2.10</version>
78 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId>
79 <version>3.0.2</version> </plugin> -->
82 <groupId>org.apache.maven.plugins</groupId>
83 <artifactId>maven-source-plugin</artifactId>
84 <version>3.0.0</version>
87 <id>attach-sources</id>
89 <goal>jar-no-fork</goal>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-release-plugin</artifactId>
97 <version>2.5.3</version>
99 <autoVersionSubmodules>true</autoVersionSubmodules>
100 <checkModificationExcludes>
101 </checkModificationExcludes>
105 <groupId>org.apache.maven.scm</groupId>
106 <artifactId>maven-scm-provider-gitexe</artifactId>
107 <version>1.9.4</version>
113 <groupId>org.sonatype.plugins</groupId>
114 <artifactId>nexus-staging-maven-plugin</artifactId>
115 <extensions>false</extensions>
118 <id>injected-nexus-deploy</id>
124 <artifactId>maven-deploy-plugin</artifactId>
125 <version>2.8</version>
128 <id>default-deploy</id>
140 <artifactId>maven-dependency-plugin</artifactId>
144 <phase>package</phase>
149 <outputDirectory>target</outputDirectory>
150 <encoding>UTF-8</encoding>
153 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
154 <artifactId>dmaapMMAgent</artifactId>
155 <version>1.1.1-SNAPSHOT</version>
156 <destFileName>dmaapMMAgent.jar</destFileName>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-enforcer-plugin</artifactId>
168 <id>enforce-no-snapshots</id>
175 <message>No Snapshots Allowed!</message>
177 <exclude>org.onap.dmaap.messagerouter.mirroragent:dmaapMMAgent</exclude>
179 </requireReleaseDeps>
187 <groupId>com.spotify</groupId>
188 <artifactId>docker-maven-plugin</artifactId>
189 <version>1.0.0</version>
191 <imageName>onap/dmaap/kafka01101</imageName>
192 <dockerDirectory>src/main/docker</dockerDirectory>
193 <serverId>docker-hub</serverId>
195 <imageTag>${KafkaImg}</imageTag>
196 <imageTag>latest</imageTag>
198 <forceTags>true</forceTags>
200 <!-- <resource> <targetPath>/</targetPath> <directory>${dockerLocation}</directory>
201 <include>${project.build.finalName}.jar</include> </resource> -->
203 <targetPath>/</targetPath>
204 <directory>${project.build.directory}</directory>
205 <include>**/**</include>
208 <targetPath>/</targetPath>
209 <directory>${project.build.directory}</directory>
210 <include>dmaapMMAgent.jar</include>
217 <phase>install</phase>
222 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
227 <id>tag-image-project-version</id>
228 <phase>install</phase>
233 <image>onap/dmaap/kafka01101</image>
234 <newName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</newName>
235 <skipDockerTag>${skip.docker.push}</skipDockerTag>
240 <id>tag-image-latest</id>
241 <phase>install</phase>
246 <image>onap/dmaap/kafka01101</image>
247 <newName>${docker.push.registry}/onap/dmaap/kafka01101:latest</newName>
248 <skipDockerTag>${skip.docker.push}</skipDockerTag>
254 <phase>deploy</phase>
259 <imageName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</imageName>
260 <skipDockerPush>${skip.docker.push}</skipDockerPush>
265 <id>push-image-latest</id>
266 <phase>deploy</phase>
271 <imageName>${docker.push.registry}/onap/dmaap/kafka01101:latest</imageName>
272 <skipDockerPush>${skip.docker.push}</skipDockerPush>
279 <groupId>org.apache.maven.plugins</groupId>
280 <artifactId>maven-assembly-plugin</artifactId>
281 <version>2.4.1</version>
283 <!-- get all project dependencies -->
285 <descriptorRef>jar-with-dependencies</descriptorRef>
287 <!-- MainClass in mainfest make a executable jar -->
288 <finalName>kafka11aaf</finalName>
292 <id>make-assembly</id>
293 <!-- bind to the packaging phase -->
294 <phase>package</phase>
306 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
307 <KafkaImg>0.0.3</KafkaImg>
308 <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
309 <skip.docker.build>true</skip.docker.build>
310 <skip.docker.push>true</skip.docker.push>
311 <nexusproxy>https://nexus.onap.org</nexusproxy>
312 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
313 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
316 <!-- Distribution management -->
317 <distributionManagement>
320 <url>dav:${nexusproxy}${sitePath}</url>
322 </distributionManagement>
326 <groupId>org.onap.aaf.authz</groupId>
327 <artifactId>aaf-cadi-aaf</artifactId>
328 <version>2.1.2</version>
331 <groupId>org.slf4j</groupId>
332 <artifactId>slf4j-api</artifactId>
333 <version>1.7.2</version>
336 <groupId>org.slf4j</groupId>
337 <artifactId>slf4j-simple</artifactId>
338 <version>1.7.2</version>
339 <scope>runtime</scope>
342 <groupId>org.apache.kafka</groupId>
343 <artifactId>kafka_2.11</artifactId>
344 <version>0.11.0.3</version>
347 <groupId>org.powermock</groupId>
348 <artifactId>powermock-api-mockito</artifactId>
349 <version>1.6.4</version>
354 <groupId>org.powermock</groupId>
355 <artifactId>powermock-module-junit4</artifactId>
356 <version>1.6.4</version>
361 <groupId>org.powermock</groupId>
362 <artifactId>powermock-module-junit4-rule</artifactId>
363 <version>1.6.4</version>
367 <groupId>org.mockito</groupId>
368 <artifactId>mockito-core</artifactId>
369 <version>1.10.19</version>
378 <skip.docker.build>false</skip.docker.build>
379 <skip.docker.tag>false</skip.docker.tag>
380 <skip.docker.push>false</skip.docker.push>