blob: cc93bc739fe4794da061f66e569da3d032a439e1 [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. -->
Colin Deckera7e52fc2014-09-24 16:26:07 -040089 <repository>
90 <id>google-releases</id>
91 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
92 </repository>
Sam Berlinc15e74a2014-08-08 14:17:15 -040093 <snapshotRepository>
94 <id>google-snapshots</id>
95 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
96 </snapshotRepository>
97 </distributionManagement>
98
mccullsbc7e1502010-10-21 23:36:09 +000099 <modules>
100 <module>core</module>
101 <module>extensions</module>
102 </modules>
103
mcculls4d4e1602010-11-24 21:16:07 +0000104 <prerequisites>
105 <maven>3.0</maven>
106 </prerequisites>
107
mccullsbc7e1502010-10-21 23:36:09 +0000108 <properties>
mccullsaacb4842010-11-04 22:51:25 +0000109 <!--
110 | The spec version of the public Guice API
111 -->
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700112 <guice.api.version>1.4</guice.api.version>
mcculls8846db32010-11-04 02:22:00 +0000113 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
mccullsaacb4842010-11-04 22:51:25 +0000114 <!--
115 | Use "-Dguice.with.jarjar=false" to build without jarjar
116 -->
mcculls8846db32010-11-04 02:22:00 +0000117 <guice.with.jarjar>true</guice.with.jarjar>
mccullsaacb4842010-11-04 22:51:25 +0000118 <!--
mcculls692ca952010-12-10 15:05:01 +0000119 | Use "-Dguice.with.no_aop=false" to skip the no-AOP variant
mccullsaacb4842010-11-04 22:51:25 +0000120 -->
mcculls692ca952010-12-10 15:05:01 +0000121 <guice.with.no_aop>true</guice.with.no_aop>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700122 <gpg.skip>true</gpg.skip>
mccullsbc7e1502010-10-21 23:36:09 +0000123 </properties>
124
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100125 <dependencyManagement>
126 <dependencies>
127 <dependency>
128 <groupId>javax.inject</groupId>
129 <artifactId>javax.inject</artifactId>
130 <version>1</version>
131 </dependency>
132 <dependency>
133 <groupId>javax.inject</groupId>
134 <artifactId>javax.inject-tck</artifactId>
135 <version>1</version>
136 </dependency>
137 <dependency>
138 <groupId>aopalliance</groupId>
139 <artifactId>aopalliance</artifactId>
140 <version>1.0</version>
141 </dependency>
142 <dependency>
143 <groupId>com.google.guava</groupId>
144 <artifactId>guava</artifactId>
145 <version>16.0.1</version>
146 </dependency>
147 <dependency>
148 <groupId>com.google.guava</groupId>
149 <artifactId>guava-testlib</artifactId>
150 <version>16.0.1</version>
151 </dependency>
152 <dependency>
153 <groupId>org.ow2.asm</groupId>
154 <artifactId>asm</artifactId>
155 <version>5.0.3</version>
156 </dependency>
157 <dependency>
158 <groupId>cglib</groupId>
159 <artifactId>cglib</artifactId>
160 <version>3.1</version>
161 </dependency>
162 </dependencies>
163 </dependencyManagement>
164
mccullsbc7e1502010-10-21 23:36:09 +0000165 <dependencies>
mcculls8846db32010-11-04 02:22:00 +0000166 <dependency>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800167 <groupId>junit</groupId>
168 <artifactId>junit</artifactId>
169 <version>4.11</version>
mccullsbc7e1502010-10-21 23:36:09 +0000170 <scope>test</scope>
sberlinb0852382010-08-01 19:55:08 +0000171 </dependency>
crazybobleeac266a22007-02-26 00:07:01 +0000172 </dependencies>
mccullsbc7e1502010-10-21 23:36:09 +0000173
mccullsbc7e1502010-10-21 23:36:09 +0000174 <build>
mccullsaacb4842010-11-04 22:51:25 +0000175 <!--
176 | Ant-style directories
177 -->
mccullsbc7e1502010-10-21 23:36:09 +0000178 <sourceDirectory>${project.basedir}/src</sourceDirectory>
179 <resources>
180 <resource>
181 <filtering>false</filtering>
182 <directory>${project.basedir}/src</directory>
183 <excludes>
184 <exclude>**/*.java</exclude>
185 </excludes>
186 </resource>
187 </resources>
188 <testSourceDirectory>${project.basedir}/test</testSourceDirectory>
189 <testResources>
190 <testResource>
191 <filtering>false</filtering>
192 <directory>${project.basedir}/test</directory>
193 <excludes>
194 <exclude>**/*.java</exclude>
195 </excludes>
196 </testResource>
197 </testResources>
198 <pluginManagement>
199 <plugins>
mcculls33018c32011-01-04 15:16:27 +0000200 <!--
Stuart McCulloch4ad62562014-09-07 18:19:25 +0100201 | Use 'mvn license:format -N' at top of project to add missing headers
202 -->
203 <plugin>
204 <groupId>com.mycila</groupId>
205 <artifactId>license-maven-plugin</artifactId>
206 <version>2.6</version>
207 <configuration>
208 <encoding>UTF-8</encoding>
209 <header>${project.basedir}/lib/build/header.txt</header>
210 <headerDefinitions>
211 <headerDefinition>${project.basedir}/lib/build/header-definitions.xml</headerDefinition>
212 </headerDefinitions>
213 <skipExistingHeaders>true</skipExistingHeaders>
214 <aggregate>true</aggregate>
215 <includes>
216 <include>**/*.java</include>
217 </includes>
218 <excludes>
219 <!-- avoid touching munged/lib/test/example code -->
220 <exclude>**/build/**</exclude>
221 <exclude>**/target/**</exclude>
222 <exclude>**/lib/**</exclude>
223 <exclude>**/test/**</exclude>
224 <exclude>**/example*/**</exclude>
225 </excludes>
226 <mapping>
227 <java>JAVADOC_STYLE</java>
228 </mapping>
229 </configuration>
230 </plugin>
231 <!--
mcculls33018c32011-01-04 15:16:27 +0000232 | Standard LICENSE and NOTICE files
233 -->
mccullsbc7e1502010-10-21 23:36:09 +0000234 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000235 <artifactId>maven-remote-resources-plugin</artifactId>
236 <version>1.1</version>
237 <executions>
238 <execution>
239 <goals>
240 <goal>process</goal>
241 </goals>
242 <configuration>
243 <resourceBundles>
244 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
245 </resourceBundles>
246 </configuration>
247 </execution>
248 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000249 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000250 <!--
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100251 | Make sure we only use Java6 methods
mccullsaacb4842010-11-04 22:51:25 +0000252 -->
mccullsbc7e1502010-10-21 23:36:09 +0000253 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000254 <artifactId>maven-compiler-plugin</artifactId>
255 <version>2.3.2</version>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800256 <configuration>
257 <source>1.6</source>
258 <target>1.6</target>
259 </configuration>
mcculls33018c32011-01-04 15:16:27 +0000260 </plugin>
261 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000262 <groupId>org.codehaus.mojo</groupId>
263 <artifactId>animal-sniffer-maven-plugin</artifactId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800264 <version>1.10</version>
mccullsbc7e1502010-10-21 23:36:09 +0000265 <configuration>
266 <signature>
267 <groupId>org.codehaus.mojo.signature</groupId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800268 <artifactId>java16</artifactId>
mccullsbc7e1502010-10-21 23:36:09 +0000269 <version>1.0</version>
270 </signature>
271 </configuration>
272 <executions>
273 <execution>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800274 <id>check-java-1.6-compat</id>
mccullsbc7e1502010-10-21 23:36:09 +0000275 <phase>process-classes</phase>
276 <goals>
277 <goal>check</goal>
278 </goals>
279 </execution>
280 </executions>
281 </plugin>
mcculls8846db32010-11-04 02:22:00 +0000282 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000283 <artifactId>maven-surefire-plugin</artifactId>
mcculls8846db32010-11-04 02:22:00 +0000284 <version>2.5</version>
mccullsbc7e1502010-10-21 23:36:09 +0000285 <configuration>
286 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Christian Edward Gruberba5acdf2013-10-05 14:05:39 -0700287 <!--<argLine>-Dguice_include_stack_traces=OFF</argLine>-->
mccullsbc7e1502010-10-21 23:36:09 +0000288 </configuration>
Christian Edward Grubere1197a92013-11-12 23:06:31 -0800289 <executions>
290 <execution>
291 <id>stack-traces-off</id>
292 <phase>test</phase>
293 <goals><goal>test</goal></goals>
294 <configuration>
295 <argLine>-Dguice_include_stack_traces=OFF</argLine>
296 </configuration>
297 </execution>
298 <execution>
299 <id>stack-traces-complete</id>
300 <phase>test</phase>
301 <goals><goal>test</goal></goals>
302 <configuration>
303 <argLine>-Dguice_include_stack_traces=COMPLETE</argLine>
304 </configuration>
305 </execution>
306 <execution>
307 <id>default-test</id>
308 <phase>test</phase>
309 <goals><goal>test</goal></goals>
310 <configuration>
311 <argLine>-Dguice_include_stack_traces=ONLY_FOR_DECLARING_SOURCE</argLine>
312 </configuration>
313 </execution>
314 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000315 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000316 <!--
317 | Shared OSGi manifest configuration
318 -->
mccullsbc7e1502010-10-21 23:36:09 +0000319 <plugin>
320 <groupId>org.apache.felix</groupId>
321 <artifactId>maven-bundle-plugin</artifactId>
322 <version>2.1.0</version>
323 <configuration>
324 <instructions>
mcculls8846db32010-11-04 02:22:00 +0000325 <module>com.google.inject</module>
326 <_include>-${project.basedir}/build.properties</_include>
mccullsbc7e1502010-10-21 23:36:09 +0000327 <Bundle-Copyright>Copyright (C) 2006 Google Inc.</Bundle-Copyright>
Sam Berlin0558b322014-07-10 16:33:32 -0400328 <Bundle-DocURL>https://github.com/google/guice</Bundle-DocURL>
mcculls8846db32010-11-04 02:22:00 +0000329 <Bundle-Name>${project.artifactId}</Bundle-Name>
330 <Bundle-SymbolicName>$(module)</Bundle-SymbolicName>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100331 <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
mccullsbc7e1502010-10-21 23:36:09 +0000332 <Import-Package>!com.google.inject.*,*</Import-Package>
mcculls8846db32010-11-04 02:22:00 +0000333 <_exportcontents>!*.internal.*,$(module).*;version=${guice.api.version}</_exportcontents>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100334 <_versionpolicy>$(version;==;$(@))</_versionpolicy>
mccullsbc7e1502010-10-21 23:36:09 +0000335 <_nouses>true</_nouses>
336 <_removeheaders>
337 Embed-Dependency,Embed-Transitive,
338 Built-By,Tool,Created-By,Build-Jdk,
339 Originally-Created-By,Archiver-Version,
340 Include-Resource,Private-Package,
341 Ignore-Package,Bnd-LastModified
342 </_removeheaders>
343 </instructions>
344 </configuration>
345 <executions>
346 <execution>
347 <phase>prepare-package</phase>
348 <goals>
349 <goal>manifest</goal>
350 </goals>
351 </execution>
352 </executions>
353 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000354 <!--
355 | Package OSGi manifest in final JAR, also create a JAR of the test classes
356 -->
mccullsbc7e1502010-10-21 23:36:09 +0000357 <plugin>
358 <artifactId>maven-jar-plugin</artifactId>
359 <version>2.3.1</version>
360 <configuration>
361 <archive>
362 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
sberlind5fcf7c2011-01-09 16:10:11 +0000363 <!-- Exclude to mirror ant build -->
Sam Berlin45ef0172012-01-13 18:22:35 -0500364 <addMavenDescriptor>false</addMavenDescriptor>
mccullsbc7e1502010-10-21 23:36:09 +0000365 </archive>
366 </configuration>
367 <executions>
368 <execution>
369 <phase>package</phase>
370 <goals>
371 <goal>test-jar</goal>
372 </goals>
373 </execution>
374 </executions>
375 </plugin>
376 <plugin>
377 <artifactId>maven-javadoc-plugin</artifactId>
378 <version>2.7</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700379 <executions>
380 <execution>
381 <phase>package</phase>
382 <goals>
383 <goal>jar</goal>
384 </goals>
385 </execution>
386 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000387 </plugin>
388 <plugin>
389 <artifactId>maven-source-plugin</artifactId>
390 <version>2.1.2</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700391 <executions>
392 <execution>
393 <phase>package</phase>
394 <goals>
395 <goal>jar</goal>
396 <goal>test-jar</goal>
397 </goals>
398 </execution>
399 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000400 </plugin>
401 <plugin>
402 <artifactId>maven-release-plugin</artifactId>
403 <version>2.1</version>
404 <configuration>
405 <autoVersionSubmodules>true</autoVersionSubmodules>
406 </configuration>
407 </plugin>
mccullsc2420fb2010-12-10 15:52:38 +0000408 <plugin>
409 <artifactId>maven-deploy-plugin</artifactId>
410 <version>2.5</version>
411 </plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000412 </plugins>
413 </pluginManagement>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700414 <plugins>
415 <!--
416 | Sign artifacts.
417 -->
418 <plugin>
419 <artifactId>maven-gpg-plugin</artifactId>
420 <version>1.4</version>
421 <executions>
422 <execution>
423 <id>sign-artifacts</id>
424 <phase>verify</phase>
425 <goals><goal>sign</goal></goals>
426 </execution>
427 </executions>
428 </plugin>
429 </plugins>
mccullsbc7e1502010-10-21 23:36:09 +0000430 </build>
431
mcculls88153582010-10-22 00:01:07 +0000432 <profiles>
433 <profile>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400434 <id>doclint-java8-disable</id>
435 <activation>
436 <jdk>[1.8,)</jdk>
437 </activation>
438 <build>
439 <plugins>
440 <plugin>
441 <groupId>org.apache.maven.plugins</groupId>
442 <artifactId>maven-javadoc-plugin</artifactId>
443 <configuration>
444 <additionalparam>-Xdoclint:none</additionalparam>
445 </configuration>
446 </plugin>
447 <plugin>
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-site-plugin</artifactId>
450 <version>3.3</version>
451 <configuration>
452 <reportPlugins>
453 <plugin>
454 <groupId>org.apache.maven.plugins</groupId>
455 <artifactId>maven-javadoc-plugin</artifactId>
456 <configuration>
457 <additionalparam>-Xdoclint:none</additionalparam>
458 </configuration>
459 </plugin>
460 </reportPlugins>
461 </configuration>
462 </plugin>
463 </plugins>
464 </build>
465 </profile>
mcculls88153582010-10-22 00:01:07 +0000466 </profiles>
467
crazybobleeac266a22007-02-26 00:07:01 +0000468</project>