blob: ad61fcac8934f05fe688e841229cf960a5631d70 [file] [log] [blame]
mccullsbc7e1502010-10-21 23:36:09 +00001<?xml version="1.0" encoding="UTF-8"?>
sberlinb0852382010-08-01 19:55:08 +00002
mccullsbc7e1502010-10-21 23:36:09 +00003<!--
4Copyright (c) 2006 Google, Inc. All rights reserved.
5
6This program is licensed to you under the Apache License Version 2.0,
7and you may not use this file except in compliance with the Apache License Version 2.0.
8You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
9
10Unless required by applicable law or agreed to in writing,
11software distributed under the Apache License Version 2.0 is distributed on an
12"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
14-->
15
16<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">
17
18 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>com.google</groupId>
22 <artifactId>google</artifactId>
23 <version>5</version>
24 </parent>
25
26 <packaging>pom</packaging>
27
28 <groupId>com.google.inject</groupId>
29 <artifactId>guice-parent</artifactId>
30 <version>3.0-SNAPSHOT</version>
31
32 <name>Google Guice</name>
33
34 <description>
35 Guice is a lightweight dependency injection framework for Java 5 and above
36 </description>
37
38 <url>http://code.google.com/p/google-guice/</url>
39 <inceptionYear>2006</inceptionYear>
40
41 <organization>
42 <name>Google, Inc.</name>
43 <url>http://www.google.com</url>
44 </organization>
45
46 <mailingLists>
47 <mailingList>
48 <name>Guice Users List</name>
49 <archive>http://groups.google.com/group/google-guice/topics</archive>
50 <subscribe>http://groups.google.com/group/google-guice/subscribe</subscribe>
51 <unsubscribe>http://groups.google.com/group/google-guice/subscribe</unsubscribe>
52 <post>http://groups.google.com/group/google-guice/post</post>
53 </mailingList>
54 <mailingList>
55 <name>Guice Developers List</name>
56 <archive>http://groups.google.com/group/google-guice-dev/topics</archive>
57 <subscribe>http://groups.google.com/group/google-guice-dev/subscribe</subscribe>
58 <unsubscribe>http://groups.google.com/group/google-guice-dev/subscribe</unsubscribe>
59 <post>http://groups.google.com/group/google-guice-dev/post</post>
60 </mailingList>
61 </mailingLists>
62
63 <scm>
64 <connection>scm:svn:http://google-guice.googlecode.com/svn/trunk</connection>
65 <developerConnection>scm:svn:https://google-guice.googlecode.com/svn/trunk</developerConnection>
66 <url>http://code.google.com/p/google-guice/source/browse</url>
67 </scm>
68
69 <issueManagement>
70 <system>Google Code</system>
71 <url>http://code.google.com/p/google-guice/issues/</url>
72 </issueManagement>
73
mcculls00090052010-10-22 00:12:40 +000074 <ciManagement>
75 <system>Hudson</system>
76 <url>https://grid.sonatype.org/ci/job/Google-Guice/</url>
77 </ciManagement>
78
mccullsbc7e1502010-10-21 23:36:09 +000079 <licenses>
80 <license>
81 <name>The Apache Software License, Version 2.0</name>
82 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
83 <distribution>repo</distribution>
84 </license>
85 </licenses>
86
87 <modules>
88 <module>core</module>
89 <module>extensions</module>
90 </modules>
91
92 <properties>
mccullsaacb4842010-11-04 22:51:25 +000093 <!--
94 | The spec version of the public Guice API
95 -->
mccullsbc7e1502010-10-21 23:36:09 +000096 <guice.api.version>1.3</guice.api.version>
mcculls8846db32010-11-04 02:22:00 +000097 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
mccullsaacb4842010-11-04 22:51:25 +000098 <!--
99 | Use "-Dguice.with.jarjar=false" to build without jarjar
100 -->
mcculls8846db32010-11-04 02:22:00 +0000101 <guice.with.jarjar>true</guice.with.jarjar>
mccullsaacb4842010-11-04 22:51:25 +0000102 <!--
103 | Use "-Dguice.with.noaop=false" to skip the no-AOP variant
104 -->
mcculls8846db32010-11-04 02:22:00 +0000105 <guice.with.noaop>true</guice.with.noaop>
mccullsbc7e1502010-10-21 23:36:09 +0000106 </properties>
107
108 <dependencies>
mccullsaacb4842010-11-04 22:51:25 +0000109 <!--
110 | Replace with official CGLIB artifact when it's released
111 -->
sberlinb0852382010-08-01 19:55:08 +0000112 <dependency>
mcculls8846db32010-11-04 02:22:00 +0000113 <groupId>org.sonatype.sisu.inject</groupId>
114 <artifactId>cglib</artifactId>
115 <version>2.2.1</version>
116 <optional>${guice.with.jarjar}</optional>
117 </dependency>
mccullsaacb4842010-11-04 22:51:25 +0000118 <!--
119 | Run tests with TestNG
120 -->
mcculls8846db32010-11-04 02:22:00 +0000121 <dependency>
mcculls47575202010-11-04 15:02:41 +0000122 <groupId>org.testng</groupId>
123 <artifactId>testng</artifactId>
124 <version>5.11</version>
125 <classifier>jdk15</classifier>
mccullsbc7e1502010-10-21 23:36:09 +0000126 <scope>test</scope>
sberlinb0852382010-08-01 19:55:08 +0000127 </dependency>
crazybobleeac266a22007-02-26 00:07:01 +0000128 </dependencies>
mccullsbc7e1502010-10-21 23:36:09 +0000129
mccullsbc7e1502010-10-21 23:36:09 +0000130 <build>
mccullsaacb4842010-11-04 22:51:25 +0000131 <!--
132 | Ant-style directories
133 -->
mccullsbc7e1502010-10-21 23:36:09 +0000134 <sourceDirectory>${project.basedir}/src</sourceDirectory>
135 <resources>
136 <resource>
137 <filtering>false</filtering>
138 <directory>${project.basedir}/src</directory>
139 <excludes>
140 <exclude>**/*.java</exclude>
141 </excludes>
142 </resource>
143 </resources>
144 <testSourceDirectory>${project.basedir}/test</testSourceDirectory>
145 <testResources>
146 <testResource>
147 <filtering>false</filtering>
148 <directory>${project.basedir}/test</directory>
149 <excludes>
150 <exclude>**/*.java</exclude>
151 </excludes>
152 </testResource>
153 </testResources>
154 <pluginManagement>
155 <plugins>
156 <plugin>
157 <artifactId>maven-compiler-plugin</artifactId>
158 <version>2.3.2</version>
159 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000160 <!--
161 | Make sure we only use Java5 methods
162 -->
mccullsbc7e1502010-10-21 23:36:09 +0000163 <plugin>
164 <groupId>org.codehaus.mojo</groupId>
165 <artifactId>animal-sniffer-maven-plugin</artifactId>
166 <version>1.6</version>
167 <configuration>
168 <signature>
169 <groupId>org.codehaus.mojo.signature</groupId>
170 <artifactId>java15</artifactId>
171 <version>1.0</version>
172 </signature>
173 </configuration>
174 <executions>
175 <execution>
176 <id>check-java-1.5-compat</id>
177 <phase>process-classes</phase>
178 <goals>
179 <goal>check</goal>
180 </goals>
181 </execution>
182 </executions>
183 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000184 <!--
185 | Shared JarJar configuration
186 -->
mccullsbc7e1502010-10-21 23:36:09 +0000187 <plugin>
mcculls8846db32010-11-04 02:22:00 +0000188 <groupId>org.sonatype.plugins</groupId>
189 <artifactId>jarjar-maven-plugin</artifactId>
mcculls2c3076b2010-11-04 02:36:40 +0000190 <version>1.3</version>
mcculls8846db32010-11-04 02:22:00 +0000191 <configuration>
192 <rules>
193 <rule>
194 <pattern>net.sf.cglib.*</pattern>
195 <result>com.google.inject.internal.cglib.$@1</result>
196 </rule>
197 <rule>
198 <pattern>net.sf.cglib.**.*</pattern>
199 <result>com.google.inject.internal.cglib.@1.$@2</result>
200 </rule>
201 <rule>
202 <pattern>org.objectweb.asm.*</pattern>
203 <result>com.google.inject.internal.asm.$@1</result>
204 </rule>
205 <rule>
206 <pattern>org.objectweb.asm.**.*</pattern>
207 <result>com.google.inject.internal.asm.@1.$@2</result>
208 </rule>
209 <rule>
210 <pattern>com.google.inject.internal.util.*</pattern>
211 <result>com.google.inject.internal.util.$@1</result>
212 </rule>
213 <rule>
214 <pattern>com.google.inject.internal.util.**.*</pattern>
215 <result>com.google.inject.internal.util.@1.$@2</result>
216 </rule>
217 <keep>
218 <pattern>com.google.inject.**</pattern>
219 </keep>
mcculls188875a2010-11-04 02:49:55 +0000220 <keep>
221 <pattern>com.googlecode.**</pattern>
222 </keep>
mcculls8846db32010-11-04 02:22:00 +0000223 </rules>
224 </configuration>
mccullsaacb4842010-11-04 22:51:25 +0000225 <!--
226 | JarJar all classes before running tests
227 -->
mcculls8846db32010-11-04 02:22:00 +0000228 <executions>
229 <execution>
230 <id>jarjar-classes</id>
231 <phase>process-test-classes</phase>
232 <goals>
233 <goal>jarjar</goal>
234 </goals>
235 <configuration>
236 <input>{classes}</input>
237 </configuration>
238 </execution>
239 <execution>
240 <id>jarjar-test-classes</id>
241 <phase>process-test-classes</phase>
242 <goals>
243 <goal>jarjar</goal>
244 </goals>
245 <configuration>
246 <input>{test-classes}</input>
247 </configuration>
248 </execution>
249 </executions>
250 </plugin>
251 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000252 <artifactId>maven-surefire-plugin</artifactId>
mcculls8846db32010-11-04 02:22:00 +0000253 <version>2.5</version>
mccullsbc7e1502010-10-21 23:36:09 +0000254 <configuration>
255 <redirectTestOutputToFile>true</redirectTestOutputToFile>
256 </configuration>
257 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000258 <!--
259 | Shared OSGi manifest configuration
260 -->
mccullsbc7e1502010-10-21 23:36:09 +0000261 <plugin>
262 <groupId>org.apache.felix</groupId>
263 <artifactId>maven-bundle-plugin</artifactId>
264 <version>2.1.0</version>
265 <configuration>
266 <instructions>
mcculls8846db32010-11-04 02:22:00 +0000267 <module>com.google.inject</module>
268 <_include>-${project.basedir}/build.properties</_include>
mccullsbc7e1502010-10-21 23:36:09 +0000269 <Bundle-Copyright>Copyright (C) 2006 Google Inc.</Bundle-Copyright>
270 <Bundle-DocURL>http://code.google.com/p/google-guice/</Bundle-DocURL>
mcculls8846db32010-11-04 02:22:00 +0000271 <Bundle-Name>${project.artifactId}</Bundle-Name>
272 <Bundle-SymbolicName>$(module)</Bundle-SymbolicName>
mccullsbc7e1502010-10-21 23:36:09 +0000273 <Bundle-RequiredExecutionEnvironment>
274 J2SE-1.5,JavaSE-1.6
275 </Bundle-RequiredExecutionEnvironment>
276 <Import-Package>!com.google.inject.*,*</Import-Package>
mcculls8846db32010-11-04 02:22:00 +0000277 <_exportcontents>!*.internal.*,$(module).*;version=${guice.api.version}</_exportcontents>
mccullsbc7e1502010-10-21 23:36:09 +0000278 <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
279 <_nouses>true</_nouses>
280 <_removeheaders>
281 Embed-Dependency,Embed-Transitive,
282 Built-By,Tool,Created-By,Build-Jdk,
283 Originally-Created-By,Archiver-Version,
284 Include-Resource,Private-Package,
285 Ignore-Package,Bnd-LastModified
286 </_removeheaders>
287 </instructions>
288 </configuration>
289 <executions>
290 <execution>
291 <phase>prepare-package</phase>
292 <goals>
293 <goal>manifest</goal>
294 </goals>
295 </execution>
296 </executions>
297 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000298 <!--
299 | Package OSGi manifest in final JAR, also create a JAR of the test classes
300 -->
mccullsbc7e1502010-10-21 23:36:09 +0000301 <plugin>
302 <artifactId>maven-jar-plugin</artifactId>
303 <version>2.3.1</version>
304 <configuration>
305 <archive>
306 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
307 </archive>
308 </configuration>
309 <executions>
310 <execution>
311 <phase>package</phase>
312 <goals>
313 <goal>test-jar</goal>
314 </goals>
315 </execution>
316 </executions>
317 </plugin>
318 <plugin>
319 <artifactId>maven-javadoc-plugin</artifactId>
320 <version>2.7</version>
321 </plugin>
322 <plugin>
323 <artifactId>maven-source-plugin</artifactId>
324 <version>2.1.2</version>
325 </plugin>
326 <plugin>
327 <artifactId>maven-gpg-plugin</artifactId>
328 <version>1.1</version>
329 </plugin>
330 <plugin>
331 <artifactId>maven-release-plugin</artifactId>
332 <version>2.1</version>
333 <configuration>
334 <autoVersionSubmodules>true</autoVersionSubmodules>
335 </configuration>
336 </plugin>
337 </plugins>
338 </pluginManagement>
mccullsbc7e1502010-10-21 23:36:09 +0000339 </build>
340
mcculls88153582010-10-22 00:01:07 +0000341 <profiles>
342 <profile>
mccullsaacb4842010-11-04 22:51:25 +0000343 <!--
344 | Deployment profile for the Sonatype Grid
345 -->
mcculls88153582010-10-22 00:01:07 +0000346 <id>sonatype-grid</id>
mccullsec491882010-10-22 00:10:06 +0000347 <properties>
348 <forgeReleaseId>forge-releases</forgeReleaseId>
349 <forgeReleaseUrl>http://repository.sonatype.org:8081/service/local/staging/deploy/maven2</forgeReleaseUrl>
350 <forgeSnapshotId>forge-snapshots</forgeSnapshotId>
351 <forgeSnapshotUrl>http://repository.sonatype.org/content/repositories/snapshots</forgeSnapshotUrl>
352 </properties>
mcculls88153582010-10-22 00:01:07 +0000353 <distributionManagement>
354 <repository>
mccullsec491882010-10-22 00:10:06 +0000355 <id>${forgeReleaseId}</id>
356 <url>${forgeReleaseUrl}</url>
mcculls88153582010-10-22 00:01:07 +0000357 </repository>
358 <snapshotRepository>
mccullsec491882010-10-22 00:10:06 +0000359 <id>${forgeSnapshotId}</id>
360 <url>${forgeSnapshotUrl}</url>
mcculls88153582010-10-22 00:01:07 +0000361 </snapshotRepository>
362 </distributionManagement>
363 </profile>
364 </profiles>
365
crazybobleeac266a22007-02-26 00:07:01 +0000366</project>