blob: 4c0b85eeb38b935ef4a1a4679b85f66204701eed [file] [log] [blame]
Dave Borowitz9de65952012-08-13 16:09:45 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3Copyright 2012 Google Inc. All Rights Reserved.
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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19 <modelVersion>4.0.0</modelVersion>
20
21 <groupId>com.google.gitiles</groupId>
22 <artifactId>gitiles-parent</artifactId>
23 <packaging>pom</packaging>
24 <version>1.0-SNAPSHOT</version>
25
26 <name>Gitiles - Parent</name>
27 <url>https://gerrit.googlesource.com/gitiles</url>
28
29 <description>
30 Gitiles - Simple Git Repository Browser
31 </description>
32
33 <properties>
34 <!-- Should track Gerrit's jgitVersion fairly closely. -->
Dave Borowitz6766dd82012-11-12 11:03:57 -080035 <jgitVersion>2.1.0.201209190230-r</jgitVersion>
Dave Borowitz9de65952012-08-13 16:09:45 -070036 <jettyVersion>7.5.2.v20111006</jettyVersion>
37 </properties>
38
39 <modules>
40 <module>gitiles-servlet</module>
41 <module>gitiles-war</module>
42 </modules>
43
44 <dependencyManagement>
45 <dependencies>
46 <dependency>
47 <groupId>com.google.guava</groupId>
48 <artifactId>guava</artifactId>
49 <version>13.0</version>
50 </dependency>
51
52 <dependency>
53 <groupId>com.google.template</groupId>
54 <artifactId>soy</artifactId>
55 <version>2011-22-12</version>
56 </dependency>
57
58 <dependency>
59 <groupId>org.eclipse.jgit</groupId>
60 <artifactId>org.eclipse.jgit</artifactId>
61 <version>${jgitVersion}</version>
62 </dependency>
63
64 <dependency>
65 <groupId>org.eclipse.jgit</groupId>
66 <artifactId>org.eclipse.jgit.http.server</artifactId>
67 <version>${jgitVersion}</version>
68 </dependency>
69
70 <dependency>
71 <groupId>org.eclipse.jgit</groupId>
72 <artifactId>org.eclipse.jgit.junit</artifactId>
73 <version>${jgitVersion}</version>
74 <exclusions>
75 <exclusion>
76 <groupId>org.eclipse.jgit</groupId>
77 <artifactId>org.eclipse.jgit</artifactId>
78 </exclusion>
79 </exclusions>
80 </dependency>
81
82 <dependency>
83 <groupId>org.apache.tomcat</groupId>
84 <artifactId>servlet-api</artifactId>
85 <version>6.0.29</version>
86 </dependency>
87
88 <dependency>
89 <groupId>junit</groupId>
90 <artifactId>junit</artifactId>
91 <version>3.8.1</version>
92 </dependency>
93
94 <dependency>
95 <groupId>org.slf4j</groupId>
96 <artifactId>slf4j-api</artifactId>
97 <version>1.6.1</version>
98 </dependency>
99
100 <dependency>
101 <groupId>joda-time</groupId>
102 <artifactId>joda-time</artifactId>
103 <version>2.1</version>
104 </dependency>
105
106 <dependency>
107 <groupId>com.google.code.gson</groupId>
108 <artifactId>gson</artifactId>
109 <version>2.1</version>
110 </dependency>
111
112 <dependency>
113 <groupId>org.apache.commons</groupId>
114 <artifactId>commons-lang3</artifactId>
115 <version>3.1</version>
116 </dependency>
117
118 <dependency>
119 <groupId>org.eclipse.jetty</groupId>
120 <artifactId>jetty-server</artifactId>
121 <version>${jettyVersion}</version>
122 </dependency>
123 </dependencies>
124 </dependencyManagement>
125
126 <build>
127 <pluginManagement>
128 <plugins>
129 <plugin>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-compiler-plugin</artifactId>
132 <version>2.3.2</version>
133 <configuration>
134 <source>1.6</source>
135 <target>1.6</target>
136 <encoding>UTF-8</encoding>
137 </configuration>
138 </plugin>
139
140 <plugin>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-jar-plugin</artifactId>
143 <configuration>
144 <archive>
145 <manifestEntries>
146 <Implementation-Title>Gitiles - ${project.artifactId}</Implementation-Title>
147 <Implementation-Version>${project.version}</Implementation-Version>
148 <Implementation-Vendor>Gitiles</Implementation-Vendor>
149 <Implementation-Vendor-Id>com.google.gitiles</Implementation-Vendor-Id>
150 <Implementation-Vendor-URL>https://gerrit.googlesource.com/gitiles/</Implementation-Vendor-URL>
151 </manifestEntries>
152 </archive>
153 </configuration>
154 </plugin>
155
156 <plugin>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-war-plugin</artifactId>
159 <version>2.1.1</version>
160 </plugin>
161
162 <plugin>
163 <groupId>org.apache.maven.plugins</groupId>
164 <artifactId>maven-source-plugin</artifactId>
165 <version>2.1.2</version>
166 </plugin>
167 </plugins>
168 </pluginManagement>
169
170 <plugins>
171 <plugin>
172 <groupId>org.mortbay.jetty</groupId>
173 <artifactId>jetty-maven-plugin</artifactId>
174 <version>${jettyVersion}</version>
175 <configuration>
176 <webApp>
177 <defaultsDescriptor>gitiles-war/webdefault.xml</defaultsDescriptor>
178 </webApp>
179 <war>gitiles-war/target/gitiles-war-${project.version}.war</war>
180 </configuration>
181 <!-- TODO(dborowitz): Separate execution with reloadable static
182 resources and templates. -->
183 </plugin>
184 </plugins>
185 </build>
186
187 <repositories>
188 <!-- For JGit and Soy snapshots. -->
189 <repository>
190 <id>gerrit-maven</id>
191 <url>https://gerrit-maven.commondatastorage.googleapis.com</url>
192 </repository>
193
194 <repository>
195 <id>jgit-repository</id>
196 <url>http://download.eclipse.org/jgit/maven</url>
197 </repository>
198
199 <repository>
200 <id>java.net-repository</id>
201 <url>http://download.java.net/maven/2/</url>
202 </repository>
203 </repositories>
204</project>