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> |
Edwin Kempin | 20f9968 | 2012-08-22 14:09:52 +0200 | [diff] [blame] | 25 | <version>2.6-SNAPSHOT</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 26 | </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. Pearce | 49b9d0ef | 2010-02-23 09:06:22 -0800 | [diff] [blame] | 38 | <groupId>org.apache.tomcat</groupId> |
Shawn O. Pearce | 136d6cc | 2012-10-21 21:15:36 -0700 | [diff] [blame] | 39 | <artifactId>tomcat-servlet-api</artifactId> |
| 40 | <scope>provided</scope> |
| 41 | </dependency> |
| 42 | |
| 43 | <dependency> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 44 | <groupId>com.google.gerrit</groupId> |
| 45 | <artifactId>gerrit-gwtui</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 46 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 47 | <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. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 54 | <version>${project.version}</version> |
Augie Fackler | 3ef55a1 | 2011-11-01 10:47:36 -0500 | [diff] [blame] | 55 | <scope>runtime</scope> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 56 | </dependency> |
| 57 | |
| 58 | <dependency> |
| 59 | <groupId>bouncycastle</groupId> |
| 60 | <artifactId>bcprov-jdk15</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 61 | <scope>provided</scope> |
| 62 | </dependency> |
| 63 | |
| 64 | <dependency> |
| 65 | <groupId>bouncycastle</groupId> |
| 66 | <artifactId>bcpg-jdk15</artifactId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 67 | <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 Borowitz | fb61967 | 2012-01-20 14:05:59 -0800 | [diff] [blame] | 82 | <artifactId>gerrit-openid</artifactId> |
| 83 | <version>${project.version}</version> |
| 84 | </dependency> |
| 85 | |
| 86 | <dependency> |
| 87 | <groupId>com.google.gerrit</groupId> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 88 | <artifactId>gerrit-sshd</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 89 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 90 | </dependency> |
| 91 | |
| 92 | <dependency> |
| 93 | <groupId>com.google.gerrit</groupId> |
| 94 | <artifactId>gerrit-httpd</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 95 | <version>${project.version}</version> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 96 | </dependency> |
| 97 | |
| 98 | <dependency> |
| 99 | <groupId>com.google.gerrit</groupId> |
| 100 | <artifactId>gerrit-pgm</artifactId> |
Shawn O. Pearce | d1a3f68 | 2009-12-29 17:07:01 -0800 | [diff] [blame] | 101 | <version>${project.version}</version> |
Shawn O. Pearce | 136d6cc | 2012-10-21 21:15:36 -0700 | [diff] [blame] | 102 | <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. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 114 | </dependency> |
Dariusz Luksza | aea7618 | 2012-11-20 15:23:36 +0100 | [diff] [blame^] | 115 | |
| 116 | <dependency> |
| 117 | <groupId>org.apache.tomcat</groupId> |
| 118 | <artifactId>servlet-api</artifactId> |
| 119 | <scope>provided</scope> |
| 120 | </dependency> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 121 | </dependencies> |
| 122 | |
| 123 | <build> |
David Pursehouse | 0d5090a | 2012-10-29 22:22:59 +0900 | [diff] [blame] | 124 | <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. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 153 | <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. Pearce | e317c25 | 2010-07-12 15:31:26 -0700 | [diff] [blame] | 160 | <attachClasses>true</attachClasses> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 161 | <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. Pearce | 6ee0554 | 2009-12-18 15:33:35 -0800 | [diff] [blame] | 176 | <include>com/google/gerrit/launcher/*.class</include> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 177 | </includes> |
| 178 | </overlay> |
| 179 | </overlays> |
| 180 | </configuration> |
| 181 | </plugin> |
| 182 | |
| 183 | <plugin> |
Shawn O. Pearce | b150f25 | 2009-12-30 10:14:58 -0800 | [diff] [blame] | 184 | <groupId>org.apache.maven.plugins</groupId> |
Shawn O. Pearce | 136d6cc | 2012-10-21 21:15:36 -0700 | [diff] [blame] | 185 | <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. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 202 | <artifactId>maven-antrun-plugin</artifactId> |
| 203 | <executions> |
| 204 | <execution> |
Shawn O. Pearce | 136d6cc | 2012-10-21 21:15:36 -0700 | [diff] [blame] | 205 | <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. Pearce | 15779d9 | 2011-04-06 16:36:36 -0400 | [diff] [blame] | 225 | <id>copy-license</id> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 226 | <phase>process-classes</phase> |
| 227 | <configuration> |
Anatol Pomozov | 0de5755 | 2010-11-09 15:56:47 -0800 | [diff] [blame] | 228 | <target> |
Shawn O. Pearce | e6fc72f | 2010-02-22 09:31:18 -0800 | [diff] [blame] | 229 | <property name="src" location="${basedir}/../Documentation" /> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 230 | <property name="dst" location="${project.build.directory}/${project.build.finalName}" /> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 231 | |
| 232 | <copy tofile="${dst}/LICENSES.txt" |
Shawn O. Pearce | e6fc72f | 2010-02-22 09:31:18 -0800 | [diff] [blame] | 233 | file="${src}/licenses.txt" |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 234 | overwrite="true" /> |
Anatol Pomozov | 0de5755 | 2010-11-09 15:56:47 -0800 | [diff] [blame] | 235 | </target> |
Shawn O. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 236 | </configuration> |
| 237 | <goals> |
| 238 | <goal>run</goal> |
| 239 | </goals> |
| 240 | </execution> |
Shawn O. Pearce | 15779d9 | 2011-04-06 16:36:36 -0400 | [diff] [blame] | 241 | <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 Kempin | b50ffe3 | 2012-10-17 15:04:47 +0200 | [diff] [blame] | 268 | <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. Pearce | 44671f5 | 2009-11-07 12:55:26 -0800 | [diff] [blame] | 295 | </executions> |
| 296 | </plugin> |
| 297 | </plugins> |
| 298 | </build> |
| 299 | </project> |