blob: 9802b68a8d7bc68efa149f6d63e29e6947cab75a [file] [log] [blame]
Shawn O. Pearce44671f52009-11-07 12:55:26 -08001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3Copyright (C) 2009 The Android Open Source Project
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17<project xmlns="http://maven.apache.org/POM/4.0.0"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21
22 <parent>
23 <groupId>com.google.gerrit</groupId>
24 <artifactId>gerrit-parent</artifactId>
Edwin Kempin20f99682012-08-22 14:09:52 +020025 <version>2.6-SNAPSHOT</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080026 </parent>
27
28 <artifactId>gerrit-war</artifactId>
29 <name>Gerrit Code Review - WAR</name>
30 <packaging>war</packaging>
31
32 <description>
33 Gerrit packaged as a standard web application archive
34 </description>
35
36 <dependencies>
37 <dependency>
Shawn O. Pearce49b9d0ef2010-02-23 09:06:22 -080038 <groupId>org.apache.tomcat</groupId>
Shawn O. Pearce136d6cc2012-10-21 21:15:36 -070039 <artifactId>tomcat-servlet-api</artifactId>
40 <scope>provided</scope>
41 </dependency>
42
43 <dependency>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080044 <groupId>com.google.gerrit</groupId>
45 <artifactId>gerrit-gwtui</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080046 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080047 <type>war</type>
48 <scope>runtime</scope>
49 </dependency>
50
51 <dependency>
52 <groupId>com.google.gerrit</groupId>
53 <artifactId>gerrit-main</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080054 <version>${project.version}</version>
Augie Fackler3ef55a12011-11-01 10:47:36 -050055 <scope>runtime</scope>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080056 </dependency>
57
58 <dependency>
59 <groupId>bouncycastle</groupId>
60 <artifactId>bcprov-jdk15</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080061 <scope>provided</scope>
62 </dependency>
63
64 <dependency>
65 <groupId>bouncycastle</groupId>
66 <artifactId>bcpg-jdk15</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080067 <scope>provided</scope>
68 </dependency>
69
70 <dependency>
71 <groupId>org.slf4j</groupId>
72 <artifactId>slf4j-log4j12</artifactId>
73 </dependency>
74
75 <dependency>
76 <groupId>log4j</groupId>
77 <artifactId>log4j</artifactId>
78 </dependency>
79
80 <dependency>
81 <groupId>com.google.gerrit</groupId>
Dave Borowitzfb619672012-01-20 14:05:59 -080082 <artifactId>gerrit-openid</artifactId>
83 <version>${project.version}</version>
84 </dependency>
85
86 <dependency>
87 <groupId>com.google.gerrit</groupId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080088 <artifactId>gerrit-sshd</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080089 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080090 </dependency>
91
92 <dependency>
93 <groupId>com.google.gerrit</groupId>
94 <artifactId>gerrit-httpd</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080095 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080096 </dependency>
97
98 <dependency>
99 <groupId>com.google.gerrit</groupId>
100 <artifactId>gerrit-pgm</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -0800101 <version>${project.version}</version>
Shawn O. Pearce136d6cc2012-10-21 21:15:36 -0700102 <exclusions>
103 <exclusion>
104 <groupId>org.eclipse.jetty</groupId>
105 <artifactId>jetty-servlet</artifactId>
106 </exclusion>
107 </exclusions>
108 </dependency>
109
110 <dependency>
111 <groupId>org.eclipse.jetty</groupId>
112 <artifactId>jetty-servlet</artifactId>
113 <scope>provided</scope>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800114 </dependency>
Dariusz Lukszaaea76182012-11-20 15:23:36 +0100115
116 <dependency>
117 <groupId>org.apache.tomcat</groupId>
118 <artifactId>servlet-api</artifactId>
119 <scope>provided</scope>
120 </dependency>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800121 </dependencies>
122
123 <build>
David Pursehouse0d5090a2012-10-29 22:22:59 +0900124 <pluginManagement>
125 <plugins>
126 <plugin>
127 <groupId>org.eclipse.m2e</groupId>
128 <artifactId>lifecycle-mapping</artifactId>
129 <version>1.0.0</version>
130 <configuration>
131 <lifecycleMappingMetadata>
132 <pluginExecutions>
133 <pluginExecution>
134 <pluginExecutionFilter>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-dependency-plugin</artifactId>
137 <versionRange>[2.0,)</versionRange>
138 <goals>
139 <goal>copy-dependencies</goal>
140 <goal>unpack</goal>goal>
141 </goals>
142 </pluginExecutionFilter>
143 <action>
144 <execute />
145 </action>
146 </pluginExecution>
147 </pluginExecutions>
148 </lifecycleMappingMetadata>
149 </configuration>
150 </plugin>
151 </plugins>
152 </pluginManagement>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800153 <plugins>
154 <plugin>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-war-plugin</artifactId>
157 <configuration>
158 <warName>gerrit-${project.version}</warName>
159 <archiveClasses>true</archiveClasses>
Shawn O. Pearcee317c252010-07-12 15:31:26 -0700160 <attachClasses>true</attachClasses>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800161 <archive>
162 <addMavenDescriptor>false</addMavenDescriptor>
163 <manifestEntries>
164 <Main-Class>Main</Main-Class>
165 <Implementation-Title>Gerrit Code Review</Implementation-Title>
166 <Implementation-Version>${project.version}</Implementation-Version>
167 </manifestEntries>
168 </archive>
169 <overlays>
170 <overlay>
171 <groupId>com.google.gerrit</groupId>
172 <artifactId>gerrit-main</artifactId>
173 <type>jar</type>
174 <includes>
175 <include>Main.class</include>
Shawn O. Pearce6ee05542009-12-18 15:33:35 -0800176 <include>com/google/gerrit/launcher/*.class</include>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800177 </includes>
178 </overlay>
179 </overlays>
180 </configuration>
181 </plugin>
182
183 <plugin>
Shawn O. Pearceb150f252009-12-30 10:14:58 -0800184 <groupId>org.apache.maven.plugins</groupId>
Shawn O. Pearce136d6cc2012-10-21 21:15:36 -0700185 <artifactId>maven-dependency-plugin</artifactId>
186 <executions>
187 <execution>
188 <id>copy-servlet-api</id>
189 <configuration>
190 <includeGroupIds>org.apache.tomcat,org.eclipse.jetty</includeGroupIds>
191 <excludeArtifactIds>servlet-api</excludeArtifactIds>
192 </configuration>
193 <goals>
194 <goal>copy-dependencies</goal>
195 </goals>
196 </execution>
197 </executions>
198 </plugin>
199
200 <plugin>
201 <groupId>org.apache.maven.plugins</groupId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800202 <artifactId>maven-antrun-plugin</artifactId>
203 <executions>
204 <execution>
Shawn O. Pearce136d6cc2012-10-21 21:15:36 -0700205 <id>copy-servlet-api</id>
206 <phase>process-classes</phase>
207 <configuration>
208 <target>
209 <property name="src" location="${project.build.directory}/dependency" />
210 <property name="dst" location="${project.build.directory}/${project.build.finalName}/WEB-INF/pgm-lib" />
211
212 <mkdir dir="${dst}" />
213 <copy overwrite="true" todir="${dst}">
214 <fileset dir="${src}">
215 <include name="*.jar" />
216 </fileset>
217 </copy>
218 </target>
219 </configuration>
220 <goals>
221 <goal>run</goal>
222 </goals>
223 </execution>
224 <execution>
Shawn O. Pearce15779d92011-04-06 16:36:36 -0400225 <id>copy-license</id>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800226 <phase>process-classes</phase>
227 <configuration>
Anatol Pomozov0de57552010-11-09 15:56:47 -0800228 <target>
Shawn O. Pearcee6fc72f2010-02-22 09:31:18 -0800229 <property name="src" location="${basedir}/../Documentation" />
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800230 <property name="dst" location="${project.build.directory}/${project.build.finalName}" />
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800231
232 <copy tofile="${dst}/LICENSES.txt"
Shawn O. Pearcee6fc72f2010-02-22 09:31:18 -0800233 file="${src}/licenses.txt"
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800234 overwrite="true" />
Anatol Pomozov0de57552010-11-09 15:56:47 -0800235 </target>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800236 </configuration>
237 <goals>
238 <goal>run</goal>
239 </goals>
240 </execution>
Shawn O. Pearce15779d92011-04-06 16:36:36 -0400241 <execution>
242 <id>include-documentation</id>
243 <phase>process-classes</phase>
244 <configuration>
245 <target if="gerrit.include-documentation">
246 <property name="src" location="${basedir}/../Documentation" />
247 <property name="out" location="${project.build.directory}/${project.build.finalName}" />
248 <property name="dst" location="${out}/Documentation" />
249
250 <exec dir="${src}" executable="make">
251 <arg value="VERSION=${project.version}" />
252 <arg value="clean" />
253 <arg value="all" />
254 </exec>
255
256 <mkdir dir="${dst}" />
257 <copy overwrite="true" todir="${dst}">
258 <fileset dir="${src}">
259 <include name="*.html" />
260 </fileset>
261 </copy>
262 </target>
263 </configuration>
264 <goals>
265 <goal>run</goal>
266 </goals>
267 </execution>
Edwin Kempinb50ffe32012-10-17 15:04:47 +0200268 <execution>
269 <id>include-release-notes</id>
270 <phase>process-classes</phase>
271 <configuration>
272 <target if="gerrit.include-documentation">
273 <property name="src" location="${basedir}/../ReleaseNotes" />
274 <property name="out" location="${project.build.directory}/${project.build.finalName}" />
275 <property name="dst" location="${out}/ReleaseNotes" />
276
277 <exec dir="${src}" executable="make">
278 <arg value="VERSION=${project.version}" />
279 <arg value="clean" />
280 <arg value="all" />
281 </exec>
282
283 <mkdir dir="${dst}" />
284 <copy overwrite="true" todir="${dst}">
285 <fileset dir="${src}">
286 <include name="*.html" />
287 </fileset>
288 </copy>
289 </target>
290 </configuration>
291 <goals>
292 <goal>run</goal>
293 </goals>
294 </execution>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800295 </executions>
296 </plugin>
297 </plugins>
298 </build>
299</project>