Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2009 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations 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. Pearce | faee655 | 2010-06-21 17:41:54 -0700 | [diff] [blame] | 25 | <version>2.1.4-SNAPSHOT</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 26 | </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. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 41 | </dependency> |
| 42 | |
| 43 | <dependency> |
| 44 | <groupId>gwtexpui</groupId> |
| 45 | <artifactId>gwtexpui</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>gwtexpui</groupId> |
| 49 | <artifactId>gwtexpui</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 50 | <classifier>sources</classifier> |
| 51 | <type>jar</type> |
| 52 | </dependency> |
| 53 | |
| 54 | <dependency> |
| 55 | <groupId>gwtjsonrpc</groupId> |
| 56 | <artifactId>gwtjsonrpc</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>gwtjsonrpc</groupId> |
| 60 | <artifactId>gwtjsonrpc</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 61 | <classifier>sources</classifier> |
| 62 | <type>jar</type> |
| 63 | </dependency> |
| 64 | |
| 65 | <dependency> |
| 66 | <groupId>gwtorm</groupId> |
| 67 | <artifactId>gwtorm</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>gwtorm</groupId> |
| 71 | <artifactId>gwtorm</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 72 | <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. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 79 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>com.google.gerrit</groupId> |
| 83 | <artifactId>gerrit-reviewdb</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 84 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 85 | <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. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 92 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 93 | </dependency> |
| 94 | <dependency> |
| 95 | <groupId>com.google.gerrit</groupId> |
| 96 | <artifactId>gerrit-common</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 97 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 98 | <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. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 105 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>com.google.gerrit</groupId> |
| 109 | <artifactId>gerrit-patch-jgit</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 110 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 111 | <classifier>sources</classifier> |
| 112 | <type>jar</type> |
| 113 | </dependency> |
| 114 | |
| 115 | <dependency> |
Shawn O. Pearce | eaab2f3 | 2009-11-17 11:05:11 -0800 | [diff] [blame] | 116 | <groupId>org.eclipse.jgit</groupId> |
| 117 | <artifactId>org.eclipse.jgit</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 118 | </dependency> |
| 119 | <dependency> |
Shawn O. Pearce | eaab2f3 | 2009-11-17 11:05:11 -0800 | [diff] [blame] | 120 | <groupId>org.eclipse.jgit</groupId> |
| 121 | <artifactId>org.eclipse.jgit</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 122 | <classifier>sources</classifier> |
| 123 | <type>jar</type> |
| 124 | </dependency> |
| 125 | |
| 126 | <dependency> |
| 127 | <groupId>com.google.gerrit</groupId> |
Shawn O. Pearce | 8db22c8 | 2010-01-30 16:12:29 -0800 | [diff] [blame] | 128 | <artifactId>gerrit-prettify</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 129 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>com.google.gerrit</groupId> |
Shawn O. Pearce | 8db22c8 | 2010-01-30 16:12:29 -0800 | [diff] [blame] | 133 | <artifactId>gerrit-prettify</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 134 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 135 | <classifier>sources</classifier> |
| 136 | <type>jar</type> |
| 137 | </dependency> |
| 138 | </dependencies> |
| 139 | |
| 140 | <build> |
| 141 | <plugins> |
| 142 | <plugin> |
Shawn O. Pearce | e43a803 | 2009-12-30 11:30:33 -0800 | [diff] [blame] | 143 | <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. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 190 | <groupId>org.codehaus.mojo</groupId> |
| 191 | <artifactId>gwt-maven-plugin</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 192 | <configuration> |
| 193 | <module>com.google.gerrit.GerritGwtUI</module> |
| 194 | <extraJvmArgs>-Xmx512m</extraJvmArgs> |
Shawn O. Pearce | ba60897 | 2009-12-19 18:55:03 -0800 | [diff] [blame] | 195 | <soyc>${gwt.soyc}</soyc> |
Shawn O. Pearce | 6094796 | 2009-12-30 18:33:10 -0800 | [diff] [blame] | 196 | <disableClassMetadata>true</disableClassMetadata> |
| 197 | <disableCastChecking>true</disableCastChecking> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 198 | </configuration> |
| 199 | <executions> |
| 200 | <execution> |
| 201 | <goals> |
| 202 | <goal>compile</goal> |
| 203 | </goals> |
| 204 | </execution> |
| 205 | </executions> |
| 206 | </plugin> |
| 207 | |
| 208 | <plugin> |
Shawn O. Pearce | b150f25 | 2009-12-30 10:14:58 -0800 | [diff] [blame] | 209 | <groupId>org.apache.maven.plugins</groupId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 210 | <artifactId>maven-antrun-plugin</artifactId> |
| 211 | <executions> |
| 212 | <execution> |
| 213 | <id>compress-html</id> |
Shawn O. Pearce | e43a803 | 2009-12-30 11:30:33 -0800 | [diff] [blame] | 214 | <phase>prepare-package</phase> |
| 215 | <goals> |
| 216 | <goal>run</goal> |
| 217 | </goals> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 218 | <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. Pearce | 21a846b | 2009-12-19 19:22:48 -0800 | [diff] [blame] | 226 | <fileset dir="${app}"> |
| 227 | <include name="**/*.html"/> |
| 228 | <include name="**/*.css"/> |
| 229 | <include name="deferredjs/**/*.js"/> |
| 230 | </fileset> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 231 | <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. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 238 | </execution> |
| 239 | </executions> |
| 240 | </plugin> |
Shawn O. Pearce | e43a803 | 2009-12-30 11:30:33 -0800 | [diff] [blame] | 241 | |
| 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. Pearce | e317c25 | 2010-07-12 15:31:26 -0700 | [diff] [blame] | 247 | <attachClasses>true</attachClasses> |
Shawn O. Pearce | e43a803 | 2009-12-30 11:30:33 -0800 | [diff] [blame] | 248 | <archive> |
| 249 | <addMavenDescriptor>false</addMavenDescriptor> |
| 250 | </archive> |
| 251 | </configuration> |
| 252 | </plugin> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 253 | </plugins> |
| 254 | </build> |
| 255 | </project> |