blob: a0a962ef068b992bbf4dabfb0d31f1a92344bf16 [file] [log] [blame]
sunil unnava5e3d91f2018-11-20 14:43:42 -05001<?xml version="1.0"?>
2<!-- ============LICENSE_START=======================================================
3 org.onap.dmaap ================================================================================
4 Copyright © 2018 AT&T Intellectual Property. All rights reserved. ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 use this file except in compliance with the License. You may obtain a copy
7 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8 by applicable law or agreed to in writing, software distributed under the
9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10 OF ANY KIND, either express or implied. See the License for the specific
11 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
12 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
13<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
su622bb8e2a3d2019-11-20 15:20:10 -050019 <version>2.1.0</version>
sunil unnava5e3d91f2018-11-20 14:43:42 -050020 </parent>
21
22 <groupId>org.onap.dmaap.zookeeper</groupId>
sunil.unnavaa04ce6f2019-04-15 12:49:19 -040023 <artifactId>zookeeper</artifactId>
efiacorccf424c2021-03-10 17:00:50 +000024 <version>6.0.4-SNAPSHOT</version>
sunil unnava5e3d91f2018-11-20 14:43:42 -050025 <name>zookeeper</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/>
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
su622ba6590cf2019-06-28 00:24:47 -040090
sunil unnava5e3d91f2018-11-20 14:43:42 -050091 <plugin>
92 <artifactId>maven-deploy-plugin</artifactId>
93 <version>2.8</version>
94 <executions>
95 <execution>
96 <id>default-deploy</id>
97 <phase>none</phase>
98 <configuration>
99 <skip />
100 </configuration>
101 </execution>
102 </executions>
103 <configuration>
104 <skip />
105 </configuration>
106 </plugin>
sunil unnava5e3d91f2018-11-20 14:43:42 -0500107 </plugins>
108 </build>
109
110 <properties>
111 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
sunil unnavad566f9c2019-02-13 17:45:31 -0500112 <timestamp>${maven.build.timestamp}</timestamp>
Simon Hrabos7da3e612019-09-24 10:29:21 +0200113 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
sunil unnava5e3d91f2018-11-20 14:43:42 -0500114 <sitePath>/content/sites/site/org/onap/dmaap/zookeeper/${project.artifactId}/${project.version}</sitePath>
115 <skip.docker.build>true</skip.docker.build>
116 <skip.docker.push>true</skip.docker.push>
117 <nexusproxy>https://nexus.onap.org</nexusproxy>
su622b87a0a722019-08-20 13:48:58 -0400118 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
119 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Simon Hrabos7da3e612019-09-24 10:29:21 +0200120 <zookeeper.dist.version>3.4.13</zookeeper.dist.version>
sunil unnava5e3d91f2018-11-20 14:43:42 -0500121 </properties>
122
123 <!-- Distribution management -->
124 <distributionManagement>
125 <site>
126 <id>ecomp-site</id>
127 <url>dav:${nexusproxy}${sitePath}</url>
128 </site>
129 </distributionManagement>
130
131 <dependencies>
132 </dependencies>
133
134 <profiles>
135 <profile>
136 <id>docker</id>
137 <properties>
138 <skip.docker.build>false</skip.docker.build>
139 <skip.docker.tag>false</skip.docker.tag>
140 <skip.docker.push>false</skip.docker.push>
141 </properties>
sunil unnavad566f9c2019-02-13 17:45:31 -0500142 <build>
143 <plugins>
144 <plugin>
145 <groupId>org.codehaus.groovy.maven</groupId>
146 <artifactId>gmaven-plugin</artifactId>
147 <executions>
148 <execution>
149 <phase>validate</phase>
150 <goals>
151 <goal>execute</goal>
152 </goals>
153 <configuration>
154 <properties>
155 <ver>${project.version}</ver>
156 <timestamp>${maven.build.timestamp}</timestamp>
157 </properties>
158 <source>
159 println project.properties['ver'];
sunil unnavad566f9c2019-02-13 17:45:31 -0500160 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
161 project.properties['dockertag1']=project.properties['ver'] + "-latest";
162 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
163 } else {
Simon Hrabos7da3e612019-09-24 10:29:21 +0200164 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
sunil unnavad566f9c2019-02-13 17:45:31 -0500165 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
166 }
167 println 'docker tag 1: ' + project.properties['dockertag1'];
168 println 'docker tag 2: ' + project.properties['dockertag2'];
169 </source>
170 </configuration>
171 </execution>
172 </executions>
173 </plugin>
Simon Hrabos7da3e612019-09-24 10:29:21 +0200174 <plugin>
175 <groupId>io.fabric8</groupId>
176 <artifactId>docker-maven-plugin</artifactId>
177 <version>0.28.0</version>
178 <configuration>
179 <verbose>${docker.verbose}</verbose>
180 <apiVersion>${docker.apiVersion}</apiVersion>
181 <pullRegistry>${docker.pull.registry}</pullRegistry>
182 <pushRegistry>${docker.push.registry}</pushRegistry>
183 <images>
184 <image>
185 <name>onap/dmaap/zookeeper</name>
186 <build>
187 <cleanup>try</cleanup>
188 <dockerFile>Dockerfile</dockerFile>
189 <tags>
190 <tag>${dockertag1}</tag>
191 <tag>${dockertag2}</tag>
192 </tags>
193 </build>
194 </image>
195 </images>
196 </configuration>
197 <executions>
198 <execution>
199 <id>generate-images</id>
200 <phase>install</phase>
201 <goals>
202 <goal>build</goal>
203 </goals>
204 </execution>
205 <execution>
206 <id>push-images</id>
207 <phase>deploy</phase>
208 <goals>
209 <goal>push</goal>
210 </goals>
211 </execution>
212 </executions>
213 </plugin>
sunil unnavad566f9c2019-02-13 17:45:31 -0500214 </plugins>
215 </build>
sunil unnava5e3d91f2018-11-20 14:43:42 -0500216 </profile>
217
218 </profiles>
219
220</project>