blob: 29c5b01cfd66cc67df725406d40e957ed4ab1472 [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>
Shawn O. Pearcefaee6552010-06-21 17:41:54 -070025 <version>2.1.4-SNAPSHOT</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080026 </parent>
27
28 <artifactId>gerrit-gwtui</artifactId>
29 <name>Gerrit Code Review - GWT UI</name>
30 <packaging>war</packaging>
31
32 <description>
33 Web interface built on top of Google Web Toolkit
34 </description>
35
36 <dependencies>
37 <dependency>
38 <groupId>com.google.gwt</groupId>
39 <artifactId>gwt-user</artifactId>
40 <version>${gwtVersion}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080041 </dependency>
42
43 <dependency>
44 <groupId>gwtexpui</groupId>
45 <artifactId>gwtexpui</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080046 </dependency>
47 <dependency>
48 <groupId>gwtexpui</groupId>
49 <artifactId>gwtexpui</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080050 <classifier>sources</classifier>
51 <type>jar</type>
52 </dependency>
53
54 <dependency>
55 <groupId>gwtjsonrpc</groupId>
56 <artifactId>gwtjsonrpc</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080057 </dependency>
58 <dependency>
59 <groupId>gwtjsonrpc</groupId>
60 <artifactId>gwtjsonrpc</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080061 <classifier>sources</classifier>
62 <type>jar</type>
63 </dependency>
64
65 <dependency>
66 <groupId>gwtorm</groupId>
67 <artifactId>gwtorm</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080068 </dependency>
69 <dependency>
70 <groupId>gwtorm</groupId>
71 <artifactId>gwtorm</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080072 <classifier>sources</classifier>
73 <type>jar</type>
74 </dependency>
75
76 <dependency>
77 <groupId>com.google.gerrit</groupId>
78 <artifactId>gerrit-reviewdb</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080079 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080080 </dependency>
81 <dependency>
82 <groupId>com.google.gerrit</groupId>
83 <artifactId>gerrit-reviewdb</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080084 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080085 <classifier>sources</classifier>
86 <type>jar</type>
87 </dependency>
88
89 <dependency>
90 <groupId>com.google.gerrit</groupId>
91 <artifactId>gerrit-common</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080092 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080093 </dependency>
94 <dependency>
95 <groupId>com.google.gerrit</groupId>
96 <artifactId>gerrit-common</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -080097 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -080098 <classifier>sources</classifier>
99 <type>jar</type>
100 </dependency>
101
102 <dependency>
103 <groupId>com.google.gerrit</groupId>
104 <artifactId>gerrit-patch-jgit</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -0800105 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800106 </dependency>
107 <dependency>
108 <groupId>com.google.gerrit</groupId>
109 <artifactId>gerrit-patch-jgit</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -0800110 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800111 <classifier>sources</classifier>
112 <type>jar</type>
113 </dependency>
114
115 <dependency>
Shawn O. Pearceeaab2f32009-11-17 11:05:11 -0800116 <groupId>org.eclipse.jgit</groupId>
117 <artifactId>org.eclipse.jgit</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800118 </dependency>
119 <dependency>
Shawn O. Pearceeaab2f32009-11-17 11:05:11 -0800120 <groupId>org.eclipse.jgit</groupId>
121 <artifactId>org.eclipse.jgit</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800122 <classifier>sources</classifier>
123 <type>jar</type>
124 </dependency>
125
126 <dependency>
127 <groupId>com.google.gerrit</groupId>
Shawn O. Pearce8db22c82010-01-30 16:12:29 -0800128 <artifactId>gerrit-prettify</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -0800129 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800130 </dependency>
131 <dependency>
132 <groupId>com.google.gerrit</groupId>
Shawn O. Pearce8db22c82010-01-30 16:12:29 -0800133 <artifactId>gerrit-prettify</artifactId>
Shawn O. Pearced1a3f682009-12-29 17:07:01 -0800134 <version>${project.version}</version>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800135 <classifier>sources</classifier>
136 <type>jar</type>
137 </dependency>
138 </dependencies>
139
140 <build>
141 <plugins>
142 <plugin>
Shawn O. Pearcee43a8032009-12-30 11:30:33 -0800143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-dependency-plugin</artifactId>
145 <executions>
146 <execution>
147 <id>get-keyapplet</id>
148 <phase>prepare-package</phase>
149 <goals>
150 <goal>copy</goal>
151 </goals>
152 <configuration>
153 <artifactItems>
154 <artifactItem>
155 <groupId>gerrit</groupId>
156 <artifactId>gerrit-keyapplet</artifactId>
157 <version>${keyappletVersion}</version>
158 <outputDirectory>${project.build.directory}/${project.build.finalName}/gerrit</outputDirectory>
159 <destFileName>gerrit-keyapplet-${keyappletVersion}.cache.jar</destFileName>
160 </artifactItem>
161 </artifactItems>
162 </configuration>
163 </execution>
164 </executions>
165 </plugin>
166
167 <plugin>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-antrun-plugin</artifactId>
170 <executions>
171 <execution>
172 <id>name-keyapplet</id>
173 <phase>generate-resources</phase>
174 <goals>
175 <goal>run</goal>
176 </goals>
177 <configuration>
178 <tasks>
179 <property name="dst" location="${project.build.outputDirectory}" />
180 <property name="pkg" location="${dst}/com/google/gerrit/client/account"/>
181 <mkdir dir="${pkg}"/>
182 <echo file="${pkg}/keyapplet_jar">gerrit-keyapplet-${keyappletVersion}.cache.jar</echo>
183 </tasks>
184 </configuration>
185 </execution>
186 </executions>
187 </plugin>
188
189 <plugin>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800190 <groupId>org.codehaus.mojo</groupId>
191 <artifactId>gwt-maven-plugin</artifactId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800192 <configuration>
193 <module>com.google.gerrit.GerritGwtUI</module>
194 <extraJvmArgs>-Xmx512m</extraJvmArgs>
Shawn O. Pearceba608972009-12-19 18:55:03 -0800195 <soyc>${gwt.soyc}</soyc>
Shawn O. Pearce60947962009-12-30 18:33:10 -0800196 <disableClassMetadata>true</disableClassMetadata>
197 <disableCastChecking>true</disableCastChecking>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800198 </configuration>
199 <executions>
200 <execution>
201 <goals>
202 <goal>compile</goal>
203 </goals>
204 </execution>
205 </executions>
206 </plugin>
207
208 <plugin>
Shawn O. Pearceb150f252009-12-30 10:14:58 -0800209 <groupId>org.apache.maven.plugins</groupId>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800210 <artifactId>maven-antrun-plugin</artifactId>
211 <executions>
212 <execution>
213 <id>compress-html</id>
Shawn O. Pearcee43a8032009-12-30 11:30:33 -0800214 <phase>prepare-package</phase>
215 <goals>
216 <goal>run</goal>
217 </goals>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800218 <configuration>
219 <tasks>
220 <property name="dst" location="${project.build.directory}/${project.build.finalName}"/>
221 <property name="app" location="${dst}/gerrit"/>
222
223 <mkdir dir="${app}"/>
224 <apply executable="gzip" addsourcefile="false">
225 <arg value="-9"/>
Shawn O. Pearce21a846b2009-12-19 19:22:48 -0800226 <fileset dir="${app}">
227 <include name="**/*.html"/>
228 <include name="**/*.css"/>
229 <include name="deferredjs/**/*.js"/>
230 </fileset>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800231 <redirector>
232 <inputmapper type="glob" from="*" to="${app}/*"/>
233 <outputmapper type="glob" from="*" to="${app}/*.gz"/>
234 </redirector>
235 </apply>
236 </tasks>
237 </configuration>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800238 </execution>
239 </executions>
240 </plugin>
Shawn O. Pearcee43a8032009-12-30 11:30:33 -0800241
242 <plugin>
243 <groupId>org.apache.maven.plugins</groupId>
244 <artifactId>maven-war-plugin</artifactId>
245 <configuration>
246 <packagingExcludes>WEB-INF/classes/**,WEB-INF/lib/**</packagingExcludes>
Shawn O. Pearcee317c252010-07-12 15:31:26 -0700247 <attachClasses>true</attachClasses>
Shawn O. Pearcee43a8032009-12-30 11:30:33 -0800248 <archive>
249 <addMavenDescriptor>false</addMavenDescriptor>
250 </archive>
251 </configuration>
252 </plugin>
Shawn O. Pearce44671f52009-11-07 12:55:26 -0800253 </plugins>
254 </build>
255</project>