Create Kafka 0.11.0.1 docker image
[dmaap/kafka11aaf.git] / pom.xml
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>
15
16         <parent>
17                 <groupId>org.onap.oparent</groupId>
18                 <artifactId>oparent</artifactId>
19                 <version>1.1.0</version>
20         </parent>
21
22         <groupId>org.onap.dmaap.kafka</groupId>
23         <artifactId>kafka11aaf</artifactId>
24         <version>1.0.0-SNAPSHOT</version>
25         <name>kafka11aaf</name>
26         <licenses>
27                 <license>
28                         <name>Apache License Version 2.0</name>
29                 </license>
30         </licenses>
31
32         <developers>
33                 <developer>
34                         <name>Sunil Unnava</name>
35                         <email></email>
36                         <organization>ATT</organization>
37                         <organizationUrl>www.att.com</organizationUrl>
38                 </developer>
39         </developers>
40
41         <build>
42                 <plugins>
43                         <plugin>
44                                 <groupId>org.apache.maven.plugins</groupId>
45                                 <artifactId>maven-site-plugin</artifactId>
46                                 <version>3.6</version>
47                                 <dependencies>
48                                         <dependency>
49                                                 <groupId>org.apache.maven.wagon</groupId>
50                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
51                                                 <version>2.10</version>
52                                         </dependency>
53                                 </dependencies>
54                         </plugin>
55
56                         <plugin>
57                                 <groupId>org.apache.maven.plugins</groupId>
58                                 <artifactId>maven-jar-plugin</artifactId>
59                                 <version>3.0.2</version>
60                         </plugin>
61
62                         <plugin>
63                                 <groupId>org.apache.maven.plugins</groupId>
64                                 <artifactId>maven-source-plugin</artifactId>
65                                 <version>3.0.0</version>
66                                 <executions>
67                                         <execution>
68                                                 <id>attach-sources</id>
69                                                 <goals>
70                                                         <goal>jar-no-fork</goal>
71                                                 </goals>
72                                         </execution>
73                                 </executions>
74                         </plugin>
75                         <plugin>
76                                 <groupId>org.apache.maven.plugins</groupId>
77                                 <artifactId>maven-release-plugin</artifactId>
78                                 <version>2.5.3</version>
79                                 <configuration>
80                                         <autoVersionSubmodules>true</autoVersionSubmodules>
81                                         <checkModificationExcludes>
82                                         </checkModificationExcludes>
83                                 </configuration>
84                                 <dependencies>
85                                         <dependency>
86                                                 <groupId>org.apache.maven.scm</groupId>
87                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
88                                                 <version>1.9.4</version>
89                                         </dependency>
90                                 </dependencies>
91                         </plugin>
92
93                         <plugin>
94                                 <groupId>com.spotify</groupId>
95                                 <artifactId>docker-maven-plugin</artifactId>
96                                 <version>1.0.0</version>
97                                 <configuration>
98                                         <imageName>onap/dmaap/kafka01101</imageName>
99                                         <dockerDirectory>src/main/docker</dockerDirectory>
100                                         <serverId>docker-hub</serverId>
101                                         <imageTags>
102                                                 <imageTag>${KafkaImg}</imageTag>
103                                                 <imageTag>latest</imageTag>
104                                         </imageTags>
105                                         <forceTags>true</forceTags>
106                                         <resources>
107                                                 <!-- <resource> <targetPath>/</targetPath> <directory>${dockerLocation}</directory> 
108                                                         <include>${project.build.finalName}.jar</include> </resource> -->
109                                                 <resource>
110                                                         <targetPath>/</targetPath>
111                                                         <directory>${project.build.directory}</directory>
112                                                         <include>**/**</include>
113                                                 </resource>
114                                         </resources>
115                                 </configuration>
116                                 <executions>
117                                         <execution>
118                                                 <id>build-image</id>
119                                                 <phase>install</phase>
120                                                 <goals>
121                                                         <goal>build</goal>
122                                                 </goals>
123                                                 <configuration>
124                                                         <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
125                                                 </configuration>
126                                         </execution>
127
128                                         <execution>
129                                                 <id>tag-image-project-version</id>
130                                                 <phase>install</phase>
131                                                 <goals>
132                                                         <goal>tag</goal>
133                                                 </goals>
134                                                 <configuration>
135                                                         <image>onap/dmaap/kafka01101</image>
136                                                         <newName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</newName>
137                                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
138                                                 </configuration>
139                                         </execution>
140
141                                         <execution>
142                                                 <id>tag-image-latest</id>
143                                                 <phase>install</phase>
144                                                 <goals>
145                                                         <goal>tag</goal>
146                                                 </goals>
147                                                 <configuration>
148                                                         <image>onap/dmaap/kafka01101</image>
149                                                         <newName>${docker.push.registry}/onap/dmaap/kafka01101:latest</newName>
150                                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
151                                                 </configuration>
152                                         </execution>
153
154                                         <execution>
155                                                 <id>push-image</id>
156                                                 <phase>deploy</phase>
157                                                 <goals>
158                                                         <goal>push</goal>
159                                                 </goals>
160                                                 <configuration>
161                                                         <imageName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</imageName>
162                                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
163                                                 </configuration>
164                                         </execution>
165
166                                         <execution>
167                                                 <id>push-image-latest</id>
168                                                 <phase>deploy</phase>
169                                                 <goals>
170                                                         <goal>push</goal>
171                                                 </goals>
172                                                 <configuration>
173                                                         <imageName>${docker.push.registry}/onap/dmaap/kafka01101:latest</imageName>
174                                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
175                                                 </configuration>
176                                         </execution>
177                                 </executions>
178                         </plugin>
179
180                 </plugins>
181         </build>
182
183         <properties>
184                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
185                 <KafkaImg>0.0.1</KafkaImg>
186                 <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
187                 <skip.docker.build>true</skip.docker.build>
188                 <skip.docker.push>true</skip.docker.push>
189                 <nexusproxy>https://nexus.onap.org</nexusproxy>
190                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
191         </properties>
192
193         <!-- Distribution management -->
194         <distributionManagement>
195                 <site>
196                         <id>ecomp-site</id>
197                         <url>dav:${nexusproxy}${sitePath}</url>
198                 </site>
199         </distributionManagement>
200
201         <dependencies>
202         </dependencies>
203
204         <profiles>
205                 <profile>
206                         <id>docker</id>
207                         <properties>
208                                 <skip.docker.build>false</skip.docker.build>
209                                 <skip.docker.tag>false</skip.docker.tag>
210                                 <skip.docker.push>false</skip.docker.push>
211                         </properties>
212                 </profile>
213
214         </profiles>
215
216 </project>