changes to Kafka environment setting
[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> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> 
57                                 <version>3.0.2</version> </plugin> -->
58
59                         <plugin>
60                                 <groupId>org.apache.maven.plugins</groupId>
61                                 <artifactId>maven-source-plugin</artifactId>
62                                 <version>3.0.0</version>
63                                 <executions>
64                                         <execution>
65                                                 <id>attach-sources</id>
66                                                 <goals>
67                                                         <goal>jar-no-fork</goal>
68                                                 </goals>
69                                         </execution>
70                                 </executions>
71                         </plugin>
72                         <plugin>
73                                 <groupId>org.apache.maven.plugins</groupId>
74                                 <artifactId>maven-release-plugin</artifactId>
75                                 <version>2.5.3</version>
76                                 <configuration>
77                                         <autoVersionSubmodules>true</autoVersionSubmodules>
78                                         <checkModificationExcludes>
79                                         </checkModificationExcludes>
80                                 </configuration>
81                                 <dependencies>
82                                         <dependency>
83                                                 <groupId>org.apache.maven.scm</groupId>
84                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
85                                                 <version>1.9.4</version>
86                                         </dependency>
87                                 </dependencies>
88                         </plugin>
89
90                         <plugin>
91                                 <groupId>org.sonatype.plugins</groupId>
92                                 <artifactId>nexus-staging-maven-plugin</artifactId>
93                                 <extensions>false</extensions>
94                                 <executions>
95                                         <execution>
96                                                 <id>injected-nexus-deploy</id>
97                                                 <phase>none</phase>
98                                         </execution>
99                                 </executions>
100                         </plugin>
101                         <plugin>
102                                 <artifactId>maven-deploy-plugin</artifactId>
103                                 <version>2.8</version>
104                                 <executions>
105                                         <execution>
106                                                 <id>default-deploy</id>
107                                                 <phase>none</phase>
108                                                 <configuration>
109                                                         <skip />
110                                                 </configuration>
111                                         </execution>
112                                 </executions>
113                                 <configuration>
114                                         <skip />
115                                 </configuration>
116                         </plugin>
117                         <plugin>
118                                 <groupId>com.spotify</groupId>
119                                 <artifactId>docker-maven-plugin</artifactId>
120                                 <version>1.0.0</version>
121                                 <configuration>
122                                         <imageName>onap/dmaap/kafka01101</imageName>
123                                         <dockerDirectory>src/main/docker</dockerDirectory>
124                                         <serverId>docker-hub</serverId>
125                                         <imageTags>
126                                                 <imageTag>${KafkaImg}</imageTag>
127                                                 <imageTag>latest</imageTag>
128                                         </imageTags>
129                                         <forceTags>true</forceTags>
130                                         <resources>
131                                                 <!-- <resource> <targetPath>/</targetPath> <directory>${dockerLocation}</directory> 
132                                                         <include>${project.build.finalName}.jar</include> </resource> -->
133                                                 <resource>
134                                                         <targetPath>/</targetPath>
135                                                         <directory>${project.build.directory}</directory>
136                                                         <include>**/**</include>
137                                                 </resource>
138                                         </resources>
139                                 </configuration>
140                                 <executions>
141                                         <execution>
142                                                 <id>build-image</id>
143                                                 <phase>install</phase>
144                                                 <goals>
145                                                         <goal>build</goal>
146                                                 </goals>
147                                                 <configuration>
148                                                         <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
149                                                 </configuration>
150                                         </execution>
151
152                                         <execution>
153                                                 <id>tag-image-project-version</id>
154                                                 <phase>install</phase>
155                                                 <goals>
156                                                         <goal>tag</goal>
157                                                 </goals>
158                                                 <configuration>
159                                                         <image>onap/dmaap/kafka01101</image>
160                                                         <newName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</newName>
161                                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
162                                                 </configuration>
163                                         </execution>
164
165                                         <execution>
166                                                 <id>tag-image-latest</id>
167                                                 <phase>install</phase>
168                                                 <goals>
169                                                         <goal>tag</goal>
170                                                 </goals>
171                                                 <configuration>
172                                                         <image>onap/dmaap/kafka01101</image>
173                                                         <newName>${docker.push.registry}/onap/dmaap/kafka01101:latest</newName>
174                                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
175                                                 </configuration>
176                                         </execution>
177
178                                         <execution>
179                                                 <id>push-image</id>
180                                                 <phase>deploy</phase>
181                                                 <goals>
182                                                         <goal>push</goal>
183                                                 </goals>
184                                                 <configuration>
185                                                         <imageName>${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg}</imageName>
186                                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
187                                                 </configuration>
188                                         </execution>
189
190                                         <execution>
191                                                 <id>push-image-latest</id>
192                                                 <phase>deploy</phase>
193                                                 <goals>
194                                                         <goal>push</goal>
195                                                 </goals>
196                                                 <configuration>
197                                                         <imageName>${docker.push.registry}/onap/dmaap/kafka01101:latest</imageName>
198                                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
199                                                 </configuration>
200                                         </execution>
201                                 </executions>
202                         </plugin>
203
204                 </plugins>
205         </build>
206
207         <properties>
208                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
209                 <KafkaImg>0.0.1</KafkaImg>
210                 <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
211                 <skip.docker.build>true</skip.docker.build>
212                 <skip.docker.push>true</skip.docker.push>
213                 <nexusproxy>https://nexus.onap.org</nexusproxy>
214                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
215         </properties>
216
217         <!-- Distribution management -->
218         <distributionManagement>
219                 <site>
220                         <id>ecomp-site</id>
221                         <url>dav:${nexusproxy}${sitePath}</url>
222                 </site>
223         </distributionManagement>
224
225         <dependencies>
226         </dependencies>
227
228         <profiles>
229                 <profile>
230                         <id>docker</id>
231                         <properties>
232                                 <skip.docker.build>false</skip.docker.build>
233                                 <skip.docker.tag>false</skip.docker.tag>
234                                 <skip.docker.push>false</skip.docker.push>
235                         </properties>
236                 </profile>
237
238         </profiles>
239
240 </project>