44671f5c69
This refactoring splits the code up into different components, with their own per-component CLASSPATH. By moving all of our classes into isolated components we can better isolate the classpaths and try to avoid unexpected dependency problems. It also allows us to more clearly define which components are used by the GWT UI and thus must be compiled under GWT, and which components are run on the server and can therefore use more of the J2SE API. Change-Id: I833cc22bacc5655d1c9099ed7c2b0e0a5b08855a Signed-off-by: Shawn O. Pearce <sop@google.com>
260 lines
7.8 KiB
XML
260 lines
7.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright (C) 2009 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-parent</artifactId>
|
|
<version>2.0.25-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>gerrit-gwtui</artifactId>
|
|
<name>Gerrit Code Review - GWT UI</name>
|
|
<packaging>war</packaging>
|
|
|
|
<description>
|
|
Web interface built on top of Google Web Toolkit
|
|
</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.google.gwt</groupId>
|
|
<artifactId>gwt-user</artifactId>
|
|
<version>${gwtVersion}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>gwtexpui</groupId>
|
|
<artifactId>gwtexpui</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>gwtexpui</groupId>
|
|
<artifactId>gwtexpui</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>gwtjsonrpc</groupId>
|
|
<artifactId>gwtjsonrpc</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>gwtjsonrpc</groupId>
|
|
<artifactId>gwtjsonrpc</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>gwtorm</groupId>
|
|
<artifactId>gwtorm</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>gwtorm</groupId>
|
|
<artifactId>gwtorm</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-reviewdb</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-reviewdb</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-common</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-common</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-patch-jgit</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-patch-jgit</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.eclipse</groupId>
|
|
<artifactId>jgit</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse</groupId>
|
|
<artifactId>jgit</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-patch-gwtexpui</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.gerrit</groupId>
|
|
<artifactId>gerrit-patch-gwtexpui</artifactId>
|
|
<scope>compile</scope>
|
|
<classifier>sources</classifier>
|
|
<type>jar</type>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>gwt-maven-plugin</artifactId>
|
|
<version>1.1</version>
|
|
<configuration>
|
|
<module>com.google.gerrit.GerritGwtUI</module>
|
|
<extraJvmArgs>-Xmx512m</extraJvmArgs>
|
|
<style>${gwtStyle}</style>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>get-keyapplet</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>gerrit</groupId>
|
|
<artifactId>gerrit-keyapplet</artifactId>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${project.build.directory}/gerrit-keyapplet</outputDirectory>
|
|
<includes>**/*</includes>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<configuration>
|
|
<packagingExcludes>WEB-INF/classes/**,WEB-INF/lib/**</packagingExcludes>
|
|
<archive>
|
|
<addMavenDescriptor>false</addMavenDescriptor>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>compress-html</id>
|
|
<phase>process-classes</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<property name="dst" location="${project.build.directory}/${project.build.finalName}"/>
|
|
<property name="app" location="${dst}/gerrit"/>
|
|
|
|
<mkdir dir="${app}"/>
|
|
<apply executable="gzip" addsourcefile="false">
|
|
<arg value="-9"/>
|
|
<fileset dir="${app}"
|
|
includes="**/*.html,**/*.css"/>
|
|
<redirector>
|
|
<inputmapper type="glob" from="*" to="${app}/*"/>
|
|
<outputmapper type="glob" from="*" to="${app}/*.gz"/>
|
|
</redirector>
|
|
</apply>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>include-keyapplet</id>
|
|
<phase>process-classes</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<property name="dst" location="${project.build.directory}/${project.build.finalName}"/>
|
|
<property name="app" location="${dst}/gerrit"/>
|
|
<property name="src" location="${basedir}/target/gerrit-keyapplet" />
|
|
|
|
<mkdir dir="${app}"/>
|
|
<zip
|
|
destfile="${app}/gerrit-keyapplet.cache.jar"
|
|
compress="true"
|
|
level="9">
|
|
<fileset dir="${src}" includes="**/*" />
|
|
</zip>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|