blob: cbc463c9e7003c41d26bf67e97986112f9bfd782 [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>
Christian Edward Grubera0e73442013-07-31 18:53:09 -070030 <version>4.0-SNAPSHOT</version>
mccullsbc7e1502010-10-21 23:36:09 +000031
32 <name>Google Guice</name>
33
34 <description>
Sam Berlin0558b322014-07-10 16:33:32 -040035 Guice is a lightweight dependency injection framework for Java 6 and above
mccullsbc7e1502010-10-21 23:36:09 +000036 </description>
37
Sam Berlin0558b322014-07-10 16:33:32 -040038 <url>https://github.com/google/guice</url>
mccullsbc7e1502010-10-21 23:36:09 +000039 <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>
Sam Berlin0558b322014-07-10 16:33:32 -040064 <connection>scm:git:git://github.com/google/guice.git</connection>
65 <developerConnection>scm:git:ssh://git@github.com/google/guice.git</developerConnection>
66 <url>https://github.com/google/guice</url>
mccullsbc7e1502010-10-21 23:36:09 +000067 </scm>
68
69 <issueManagement>
70 <system>Google Code</system>
Sam Berlin0558b322014-07-10 16:33:32 -040071 <url>https://github.com/google/guice/issues/</url>
mccullsbc7e1502010-10-21 23:36:09 +000072 </issueManagement>
73
mcculls00090052010-10-22 00:12:40 +000074 <ciManagement>
Sam Berlin0558b322014-07-10 16:33:32 -040075 <system>Travis</system>
76 <url>https://travis-ci.org/google/guice</url>
mcculls00090052010-10-22 00:12:40 +000077 </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
Sam Berlinc15e74a2014-08-08 14:17:15 -040087 <distributionManagement>
88 <!-- override the parent's directory to point to the canonical place, and use https. -->
89 <snapshotRepository>
90 <id>google-snapshots</id>
91 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
92 </snapshotRepository>
93 </distributionManagement>
94
mccullsbc7e1502010-10-21 23:36:09 +000095 <modules>
96 <module>core</module>
97 <module>extensions</module>
98 </modules>
99
mcculls4d4e1602010-11-24 21:16:07 +0000100 <prerequisites>
101 <maven>3.0</maven>
102 </prerequisites>
103
mccullsbc7e1502010-10-21 23:36:09 +0000104 <properties>
mccullsaacb4842010-11-04 22:51:25 +0000105 <!--
106 | The spec version of the public Guice API
107 -->
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700108 <guice.api.version>1.4</guice.api.version>
mcculls8846db32010-11-04 02:22:00 +0000109 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
mccullsaacb4842010-11-04 22:51:25 +0000110 <!--
111 | Use "-Dguice.with.jarjar=false" to build without jarjar
112 -->
mcculls8846db32010-11-04 02:22:00 +0000113 <guice.with.jarjar>true</guice.with.jarjar>
mccullsaacb4842010-11-04 22:51:25 +0000114 <!--
mcculls692ca952010-12-10 15:05:01 +0000115 | Use "-Dguice.with.no_aop=false" to skip the no-AOP variant
mccullsaacb4842010-11-04 22:51:25 +0000116 -->
mcculls692ca952010-12-10 15:05:01 +0000117 <guice.with.no_aop>true</guice.with.no_aop>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700118 <gpg.skip>true</gpg.skip>
mccullsbc7e1502010-10-21 23:36:09 +0000119 </properties>
120
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100121 <dependencyManagement>
122 <dependencies>
123 <dependency>
124 <groupId>javax.inject</groupId>
125 <artifactId>javax.inject</artifactId>
126 <version>1</version>
127 </dependency>
128 <dependency>
129 <groupId>javax.inject</groupId>
130 <artifactId>javax.inject-tck</artifactId>
131 <version>1</version>
132 </dependency>
133 <dependency>
134 <groupId>aopalliance</groupId>
135 <artifactId>aopalliance</artifactId>
136 <version>1.0</version>
137 </dependency>
138 <dependency>
139 <groupId>com.google.guava</groupId>
140 <artifactId>guava</artifactId>
141 <version>16.0.1</version>
142 </dependency>
143 <dependency>
144 <groupId>com.google.guava</groupId>
145 <artifactId>guava-testlib</artifactId>
146 <version>16.0.1</version>
147 </dependency>
148 <dependency>
149 <groupId>org.ow2.asm</groupId>
150 <artifactId>asm</artifactId>
151 <version>5.0.3</version>
152 </dependency>
153 <dependency>
154 <groupId>cglib</groupId>
155 <artifactId>cglib</artifactId>
156 <version>3.1</version>
157 </dependency>
158 </dependencies>
159 </dependencyManagement>
160
mccullsbc7e1502010-10-21 23:36:09 +0000161 <dependencies>
mcculls8846db32010-11-04 02:22:00 +0000162 <dependency>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800163 <groupId>junit</groupId>
164 <artifactId>junit</artifactId>
165 <version>4.11</version>
mccullsbc7e1502010-10-21 23:36:09 +0000166 <scope>test</scope>
sberlinb0852382010-08-01 19:55:08 +0000167 </dependency>
crazybobleeac266a22007-02-26 00:07:01 +0000168 </dependencies>
mccullsbc7e1502010-10-21 23:36:09 +0000169
mccullsbc7e1502010-10-21 23:36:09 +0000170 <build>
mccullsaacb4842010-11-04 22:51:25 +0000171 <!--
172 | Ant-style directories
173 -->
mccullsbc7e1502010-10-21 23:36:09 +0000174 <sourceDirectory>${project.basedir}/src</sourceDirectory>
175 <resources>
176 <resource>
177 <filtering>false</filtering>
178 <directory>${project.basedir}/src</directory>
179 <excludes>
180 <exclude>**/*.java</exclude>
181 </excludes>
182 </resource>
183 </resources>
184 <testSourceDirectory>${project.basedir}/test</testSourceDirectory>
185 <testResources>
186 <testResource>
187 <filtering>false</filtering>
188 <directory>${project.basedir}/test</directory>
189 <excludes>
190 <exclude>**/*.java</exclude>
191 </excludes>
192 </testResource>
193 </testResources>
194 <pluginManagement>
195 <plugins>
mcculls33018c32011-01-04 15:16:27 +0000196 <!--
197 | Standard LICENSE and NOTICE files
198 -->
mccullsbc7e1502010-10-21 23:36:09 +0000199 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000200 <artifactId>maven-remote-resources-plugin</artifactId>
201 <version>1.1</version>
202 <executions>
203 <execution>
204 <goals>
205 <goal>process</goal>
206 </goals>
207 <configuration>
208 <resourceBundles>
209 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
210 </resourceBundles>
211 </configuration>
212 </execution>
213 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000214 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000215 <!--
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100216 | Make sure we only use Java6 methods
mccullsaacb4842010-11-04 22:51:25 +0000217 -->
mccullsbc7e1502010-10-21 23:36:09 +0000218 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000219 <artifactId>maven-compiler-plugin</artifactId>
220 <version>2.3.2</version>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800221 <configuration>
222 <source>1.6</source>
223 <target>1.6</target>
224 </configuration>
mcculls33018c32011-01-04 15:16:27 +0000225 </plugin>
226 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000227 <groupId>org.codehaus.mojo</groupId>
228 <artifactId>animal-sniffer-maven-plugin</artifactId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800229 <version>1.10</version>
mccullsbc7e1502010-10-21 23:36:09 +0000230 <configuration>
231 <signature>
232 <groupId>org.codehaus.mojo.signature</groupId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800233 <artifactId>java16</artifactId>
mccullsbc7e1502010-10-21 23:36:09 +0000234 <version>1.0</version>
235 </signature>
236 </configuration>
237 <executions>
238 <execution>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800239 <id>check-java-1.6-compat</id>
mccullsbc7e1502010-10-21 23:36:09 +0000240 <phase>process-classes</phase>
241 <goals>
242 <goal>check</goal>
243 </goals>
244 </execution>
245 </executions>
246 </plugin>
mcculls8846db32010-11-04 02:22:00 +0000247 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000248 <artifactId>maven-surefire-plugin</artifactId>
mcculls8846db32010-11-04 02:22:00 +0000249 <version>2.5</version>
mccullsbc7e1502010-10-21 23:36:09 +0000250 <configuration>
251 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Christian Edward Gruberba5acdf2013-10-05 14:05:39 -0700252 <!--<argLine>-Dguice_include_stack_traces=OFF</argLine>-->
mccullsbc7e1502010-10-21 23:36:09 +0000253 </configuration>
Christian Edward Grubere1197a92013-11-12 23:06:31 -0800254 <executions>
255 <execution>
256 <id>stack-traces-off</id>
257 <phase>test</phase>
258 <goals><goal>test</goal></goals>
259 <configuration>
260 <argLine>-Dguice_include_stack_traces=OFF</argLine>
261 </configuration>
262 </execution>
263 <execution>
264 <id>stack-traces-complete</id>
265 <phase>test</phase>
266 <goals><goal>test</goal></goals>
267 <configuration>
268 <argLine>-Dguice_include_stack_traces=COMPLETE</argLine>
269 </configuration>
270 </execution>
271 <execution>
272 <id>default-test</id>
273 <phase>test</phase>
274 <goals><goal>test</goal></goals>
275 <configuration>
276 <argLine>-Dguice_include_stack_traces=ONLY_FOR_DECLARING_SOURCE</argLine>
277 </configuration>
278 </execution>
279 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000280 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000281 <!--
282 | Shared OSGi manifest configuration
283 -->
mccullsbc7e1502010-10-21 23:36:09 +0000284 <plugin>
285 <groupId>org.apache.felix</groupId>
286 <artifactId>maven-bundle-plugin</artifactId>
287 <version>2.1.0</version>
288 <configuration>
289 <instructions>
mcculls8846db32010-11-04 02:22:00 +0000290 <module>com.google.inject</module>
291 <_include>-${project.basedir}/build.properties</_include>
mccullsbc7e1502010-10-21 23:36:09 +0000292 <Bundle-Copyright>Copyright (C) 2006 Google Inc.</Bundle-Copyright>
Sam Berlin0558b322014-07-10 16:33:32 -0400293 <Bundle-DocURL>https://github.com/google/guice</Bundle-DocURL>
mcculls8846db32010-11-04 02:22:00 +0000294 <Bundle-Name>${project.artifactId}</Bundle-Name>
295 <Bundle-SymbolicName>$(module)</Bundle-SymbolicName>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100296 <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
mccullsbc7e1502010-10-21 23:36:09 +0000297 <Import-Package>!com.google.inject.*,*</Import-Package>
mcculls8846db32010-11-04 02:22:00 +0000298 <_exportcontents>!*.internal.*,$(module).*;version=${guice.api.version}</_exportcontents>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100299 <_versionpolicy>$(version;==;$(@))</_versionpolicy>
mccullsbc7e1502010-10-21 23:36:09 +0000300 <_nouses>true</_nouses>
301 <_removeheaders>
302 Embed-Dependency,Embed-Transitive,
303 Built-By,Tool,Created-By,Build-Jdk,
304 Originally-Created-By,Archiver-Version,
305 Include-Resource,Private-Package,
306 Ignore-Package,Bnd-LastModified
307 </_removeheaders>
308 </instructions>
309 </configuration>
310 <executions>
311 <execution>
312 <phase>prepare-package</phase>
313 <goals>
314 <goal>manifest</goal>
315 </goals>
316 </execution>
317 </executions>
318 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000319 <!--
320 | Package OSGi manifest in final JAR, also create a JAR of the test classes
321 -->
mccullsbc7e1502010-10-21 23:36:09 +0000322 <plugin>
323 <artifactId>maven-jar-plugin</artifactId>
324 <version>2.3.1</version>
325 <configuration>
326 <archive>
327 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
sberlind5fcf7c2011-01-09 16:10:11 +0000328 <!-- Exclude to mirror ant build -->
Sam Berlin45ef0172012-01-13 18:22:35 -0500329 <addMavenDescriptor>false</addMavenDescriptor>
mccullsbc7e1502010-10-21 23:36:09 +0000330 </archive>
331 </configuration>
332 <executions>
333 <execution>
334 <phase>package</phase>
335 <goals>
336 <goal>test-jar</goal>
337 </goals>
338 </execution>
339 </executions>
340 </plugin>
341 <plugin>
342 <artifactId>maven-javadoc-plugin</artifactId>
343 <version>2.7</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700344 <executions>
345 <execution>
346 <phase>package</phase>
347 <goals>
348 <goal>jar</goal>
349 </goals>
350 </execution>
351 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000352 </plugin>
353 <plugin>
354 <artifactId>maven-source-plugin</artifactId>
355 <version>2.1.2</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700356 <executions>
357 <execution>
358 <phase>package</phase>
359 <goals>
360 <goal>jar</goal>
361 <goal>test-jar</goal>
362 </goals>
363 </execution>
364 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000365 </plugin>
366 <plugin>
367 <artifactId>maven-release-plugin</artifactId>
368 <version>2.1</version>
369 <configuration>
370 <autoVersionSubmodules>true</autoVersionSubmodules>
371 </configuration>
372 </plugin>
mccullsc2420fb2010-12-10 15:52:38 +0000373 <plugin>
374 <artifactId>maven-deploy-plugin</artifactId>
375 <version>2.5</version>
376 </plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000377 </plugins>
378 </pluginManagement>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700379 <plugins>
380 <!--
381 | Sign artifacts.
382 -->
383 <plugin>
384 <artifactId>maven-gpg-plugin</artifactId>
385 <version>1.4</version>
386 <executions>
387 <execution>
388 <id>sign-artifacts</id>
389 <phase>verify</phase>
390 <goals><goal>sign</goal></goals>
391 </execution>
392 </executions>
393 </plugin>
394 </plugins>
mccullsbc7e1502010-10-21 23:36:09 +0000395 </build>
396
mcculls88153582010-10-22 00:01:07 +0000397 <profiles>
398 <profile>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400399 <id>doclint-java8-disable</id>
400 <activation>
401 <jdk>[1.8,)</jdk>
402 </activation>
403 <build>
404 <plugins>
405 <plugin>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-javadoc-plugin</artifactId>
408 <configuration>
409 <additionalparam>-Xdoclint:none</additionalparam>
410 </configuration>
411 </plugin>
412 <plugin>
413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-site-plugin</artifactId>
415 <version>3.3</version>
416 <configuration>
417 <reportPlugins>
418 <plugin>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-javadoc-plugin</artifactId>
421 <configuration>
422 <additionalparam>-Xdoclint:none</additionalparam>
423 </configuration>
424 </plugin>
425 </reportPlugins>
426 </configuration>
427 </plugin>
428 </plugins>
429 </build>
430 </profile>
mcculls88153582010-10-22 00:01:07 +0000431 </profiles>
432
crazybobleeac266a22007-02-26 00:07:01 +0000433</project>