blob: 98d5981d3f3c878bce466ad85f98a58bf5f306b5 [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
87 <modules>
88 <module>core</module>
89 <module>extensions</module>
90 </modules>
91
mcculls4d4e1602010-11-24 21:16:07 +000092 <prerequisites>
93 <maven>3.0</maven>
94 </prerequisites>
95
mccullsbc7e1502010-10-21 23:36:09 +000096 <properties>
mccullsaacb4842010-11-04 22:51:25 +000097 <!--
98 | The spec version of the public Guice API
99 -->
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700100 <guice.api.version>1.4</guice.api.version>
mcculls8846db32010-11-04 02:22:00 +0000101 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
mccullsaacb4842010-11-04 22:51:25 +0000102 <!--
103 | Use "-Dguice.with.jarjar=false" to build without jarjar
104 -->
mcculls8846db32010-11-04 02:22:00 +0000105 <guice.with.jarjar>true</guice.with.jarjar>
mccullsaacb4842010-11-04 22:51:25 +0000106 <!--
mcculls692ca952010-12-10 15:05:01 +0000107 | Use "-Dguice.with.no_aop=false" to skip the no-AOP variant
mccullsaacb4842010-11-04 22:51:25 +0000108 -->
mcculls692ca952010-12-10 15:05:01 +0000109 <guice.with.no_aop>true</guice.with.no_aop>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700110 <gpg.skip>true</gpg.skip>
mccullsbc7e1502010-10-21 23:36:09 +0000111 </properties>
112
113 <dependencies>
mcculls8846db32010-11-04 02:22:00 +0000114 <dependency>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800115 <groupId>junit</groupId>
116 <artifactId>junit</artifactId>
117 <version>4.11</version>
mccullsbc7e1502010-10-21 23:36:09 +0000118 <scope>test</scope>
sberlinb0852382010-08-01 19:55:08 +0000119 </dependency>
crazybobleeac266a22007-02-26 00:07:01 +0000120 </dependencies>
mccullsbc7e1502010-10-21 23:36:09 +0000121
mccullsbc7e1502010-10-21 23:36:09 +0000122 <build>
mccullsaacb4842010-11-04 22:51:25 +0000123 <!--
124 | Ant-style directories
125 -->
mccullsbc7e1502010-10-21 23:36:09 +0000126 <sourceDirectory>${project.basedir}/src</sourceDirectory>
127 <resources>
128 <resource>
129 <filtering>false</filtering>
130 <directory>${project.basedir}/src</directory>
131 <excludes>
132 <exclude>**/*.java</exclude>
133 </excludes>
134 </resource>
135 </resources>
136 <testSourceDirectory>${project.basedir}/test</testSourceDirectory>
137 <testResources>
138 <testResource>
139 <filtering>false</filtering>
140 <directory>${project.basedir}/test</directory>
141 <excludes>
142 <exclude>**/*.java</exclude>
143 </excludes>
144 </testResource>
145 </testResources>
146 <pluginManagement>
147 <plugins>
mcculls33018c32011-01-04 15:16:27 +0000148 <!--
149 | Standard LICENSE and NOTICE files
150 -->
mccullsbc7e1502010-10-21 23:36:09 +0000151 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000152 <artifactId>maven-remote-resources-plugin</artifactId>
153 <version>1.1</version>
154 <executions>
155 <execution>
156 <goals>
157 <goal>process</goal>
158 </goals>
159 <configuration>
160 <resourceBundles>
161 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
162 </resourceBundles>
163 </configuration>
164 </execution>
165 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000166 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000167 <!--
168 | Make sure we only use Java5 methods
169 -->
mccullsbc7e1502010-10-21 23:36:09 +0000170 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000171 <artifactId>maven-compiler-plugin</artifactId>
172 <version>2.3.2</version>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800173 <configuration>
174 <source>1.6</source>
175 <target>1.6</target>
176 </configuration>
mcculls33018c32011-01-04 15:16:27 +0000177 </plugin>
178 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000179 <groupId>org.codehaus.mojo</groupId>
180 <artifactId>animal-sniffer-maven-plugin</artifactId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800181 <version>1.10</version>
mccullsbc7e1502010-10-21 23:36:09 +0000182 <configuration>
183 <signature>
184 <groupId>org.codehaus.mojo.signature</groupId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800185 <artifactId>java16</artifactId>
mccullsbc7e1502010-10-21 23:36:09 +0000186 <version>1.0</version>
187 </signature>
188 </configuration>
189 <executions>
190 <execution>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800191 <id>check-java-1.6-compat</id>
mccullsbc7e1502010-10-21 23:36:09 +0000192 <phase>process-classes</phase>
193 <goals>
194 <goal>check</goal>
195 </goals>
196 </execution>
197 </executions>
198 </plugin>
mcculls8846db32010-11-04 02:22:00 +0000199 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000200 <artifactId>maven-surefire-plugin</artifactId>
mcculls8846db32010-11-04 02:22:00 +0000201 <version>2.5</version>
mccullsbc7e1502010-10-21 23:36:09 +0000202 <configuration>
203 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Christian Edward Gruberba5acdf2013-10-05 14:05:39 -0700204 <!--<argLine>-Dguice_include_stack_traces=OFF</argLine>-->
mccullsbc7e1502010-10-21 23:36:09 +0000205 </configuration>
Christian Edward Grubere1197a92013-11-12 23:06:31 -0800206 <executions>
207 <execution>
208 <id>stack-traces-off</id>
209 <phase>test</phase>
210 <goals><goal>test</goal></goals>
211 <configuration>
212 <argLine>-Dguice_include_stack_traces=OFF</argLine>
213 </configuration>
214 </execution>
215 <execution>
216 <id>stack-traces-complete</id>
217 <phase>test</phase>
218 <goals><goal>test</goal></goals>
219 <configuration>
220 <argLine>-Dguice_include_stack_traces=COMPLETE</argLine>
221 </configuration>
222 </execution>
223 <execution>
224 <id>default-test</id>
225 <phase>test</phase>
226 <goals><goal>test</goal></goals>
227 <configuration>
228 <argLine>-Dguice_include_stack_traces=ONLY_FOR_DECLARING_SOURCE</argLine>
229 </configuration>
230 </execution>
231 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000232 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000233 <!--
234 | Shared OSGi manifest configuration
235 -->
mccullsbc7e1502010-10-21 23:36:09 +0000236 <plugin>
237 <groupId>org.apache.felix</groupId>
238 <artifactId>maven-bundle-plugin</artifactId>
239 <version>2.1.0</version>
240 <configuration>
241 <instructions>
mcculls8846db32010-11-04 02:22:00 +0000242 <module>com.google.inject</module>
243 <_include>-${project.basedir}/build.properties</_include>
mccullsbc7e1502010-10-21 23:36:09 +0000244 <Bundle-Copyright>Copyright (C) 2006 Google Inc.</Bundle-Copyright>
Sam Berlin0558b322014-07-10 16:33:32 -0400245 <Bundle-DocURL>https://github.com/google/guice</Bundle-DocURL>
mcculls8846db32010-11-04 02:22:00 +0000246 <Bundle-Name>${project.artifactId}</Bundle-Name>
247 <Bundle-SymbolicName>$(module)</Bundle-SymbolicName>
mccullsbc7e1502010-10-21 23:36:09 +0000248 <Bundle-RequiredExecutionEnvironment>
249 J2SE-1.5,JavaSE-1.6
250 </Bundle-RequiredExecutionEnvironment>
251 <Import-Package>!com.google.inject.*,*</Import-Package>
mcculls8846db32010-11-04 02:22:00 +0000252 <_exportcontents>!*.internal.*,$(module).*;version=${guice.api.version}</_exportcontents>
mccullsbc7e1502010-10-21 23:36:09 +0000253 <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
254 <_nouses>true</_nouses>
255 <_removeheaders>
256 Embed-Dependency,Embed-Transitive,
257 Built-By,Tool,Created-By,Build-Jdk,
258 Originally-Created-By,Archiver-Version,
259 Include-Resource,Private-Package,
260 Ignore-Package,Bnd-LastModified
261 </_removeheaders>
262 </instructions>
263 </configuration>
264 <executions>
265 <execution>
266 <phase>prepare-package</phase>
267 <goals>
268 <goal>manifest</goal>
269 </goals>
270 </execution>
271 </executions>
272 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000273 <!--
274 | Package OSGi manifest in final JAR, also create a JAR of the test classes
275 -->
mccullsbc7e1502010-10-21 23:36:09 +0000276 <plugin>
277 <artifactId>maven-jar-plugin</artifactId>
278 <version>2.3.1</version>
279 <configuration>
280 <archive>
281 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
sberlind5fcf7c2011-01-09 16:10:11 +0000282 <!-- Exclude to mirror ant build -->
Sam Berlin45ef0172012-01-13 18:22:35 -0500283 <addMavenDescriptor>false</addMavenDescriptor>
mccullsbc7e1502010-10-21 23:36:09 +0000284 </archive>
285 </configuration>
286 <executions>
287 <execution>
288 <phase>package</phase>
289 <goals>
290 <goal>test-jar</goal>
291 </goals>
292 </execution>
293 </executions>
294 </plugin>
295 <plugin>
296 <artifactId>maven-javadoc-plugin</artifactId>
297 <version>2.7</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700298 <executions>
299 <execution>
300 <phase>package</phase>
301 <goals>
302 <goal>jar</goal>
303 </goals>
304 </execution>
305 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000306 </plugin>
307 <plugin>
308 <artifactId>maven-source-plugin</artifactId>
309 <version>2.1.2</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700310 <executions>
311 <execution>
312 <phase>package</phase>
313 <goals>
314 <goal>jar</goal>
315 <goal>test-jar</goal>
316 </goals>
317 </execution>
318 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000319 </plugin>
320 <plugin>
321 <artifactId>maven-release-plugin</artifactId>
322 <version>2.1</version>
323 <configuration>
324 <autoVersionSubmodules>true</autoVersionSubmodules>
325 </configuration>
326 </plugin>
mccullsc2420fb2010-12-10 15:52:38 +0000327 <plugin>
328 <artifactId>maven-deploy-plugin</artifactId>
329 <version>2.5</version>
330 </plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000331 </plugins>
332 </pluginManagement>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700333 <plugins>
334 <!--
335 | Sign artifacts.
336 -->
337 <plugin>
338 <artifactId>maven-gpg-plugin</artifactId>
339 <version>1.4</version>
340 <executions>
341 <execution>
342 <id>sign-artifacts</id>
343 <phase>verify</phase>
344 <goals><goal>sign</goal></goals>
345 </execution>
346 </executions>
347 </plugin>
348 </plugins>
mccullsbc7e1502010-10-21 23:36:09 +0000349 </build>
350
mcculls88153582010-10-22 00:01:07 +0000351 <profiles>
352 <profile>
mccullsaacb4842010-11-04 22:51:25 +0000353 <!--
354 | Deployment profile for the Sonatype Grid
355 -->
mcculls88153582010-10-22 00:01:07 +0000356 <id>sonatype-grid</id>
mccullsec491882010-10-22 00:10:06 +0000357 <properties>
358 <forgeReleaseId>forge-releases</forgeReleaseId>
359 <forgeReleaseUrl>http://repository.sonatype.org:8081/service/local/staging/deploy/maven2</forgeReleaseUrl>
360 <forgeSnapshotId>forge-snapshots</forgeSnapshotId>
361 <forgeSnapshotUrl>http://repository.sonatype.org/content/repositories/snapshots</forgeSnapshotUrl>
362 </properties>
mcculls88153582010-10-22 00:01:07 +0000363 <distributionManagement>
364 <repository>
mccullsec491882010-10-22 00:10:06 +0000365 <id>${forgeReleaseId}</id>
366 <url>${forgeReleaseUrl}</url>
mcculls88153582010-10-22 00:01:07 +0000367 </repository>
368 <snapshotRepository>
mccullsec491882010-10-22 00:10:06 +0000369 <id>${forgeSnapshotId}</id>
370 <url>${forgeSnapshotUrl}</url>
mcculls88153582010-10-22 00:01:07 +0000371 </snapshotRepository>
372 </distributionManagement>
373 </profile>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400374
375 <profile>
376 <id>doclint-java8-disable</id>
377 <activation>
378 <jdk>[1.8,)</jdk>
379 </activation>
380 <build>
381 <plugins>
382 <plugin>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-javadoc-plugin</artifactId>
385 <configuration>
386 <additionalparam>-Xdoclint:none</additionalparam>
387 </configuration>
388 </plugin>
389 <plugin>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-site-plugin</artifactId>
392 <version>3.3</version>
393 <configuration>
394 <reportPlugins>
395 <plugin>
396 <groupId>org.apache.maven.plugins</groupId>
397 <artifactId>maven-javadoc-plugin</artifactId>
398 <configuration>
399 <additionalparam>-Xdoclint:none</additionalparam>
400 </configuration>
401 </plugin>
402 </reportPlugins>
403 </configuration>
404 </plugin>
405 </plugins>
406 </build>
407 </profile>
mcculls88153582010-10-22 00:01:07 +0000408 </profiles>
409
crazybobleeac266a22007-02-26 00:07:01 +0000410</project>