blob: 37305d09740a55be9c155fec566b706f535b85b2 [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
121 <dependencies>
mcculls8846db32010-11-04 02:22:00 +0000122 <dependency>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800123 <groupId>junit</groupId>
124 <artifactId>junit</artifactId>
125 <version>4.11</version>
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>
mcculls33018c32011-01-04 15:16:27 +0000156 <!--
157 | Standard LICENSE and NOTICE files
158 -->
mccullsbc7e1502010-10-21 23:36:09 +0000159 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000160 <artifactId>maven-remote-resources-plugin</artifactId>
161 <version>1.1</version>
162 <executions>
163 <execution>
164 <goals>
165 <goal>process</goal>
166 </goals>
167 <configuration>
168 <resourceBundles>
169 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
170 </resourceBundles>
171 </configuration>
172 </execution>
173 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000174 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000175 <!--
176 | Make sure we only use Java5 methods
177 -->
mccullsbc7e1502010-10-21 23:36:09 +0000178 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000179 <artifactId>maven-compiler-plugin</artifactId>
180 <version>2.3.2</version>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800181 <configuration>
182 <source>1.6</source>
183 <target>1.6</target>
184 </configuration>
mcculls33018c32011-01-04 15:16:27 +0000185 </plugin>
186 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000187 <groupId>org.codehaus.mojo</groupId>
188 <artifactId>animal-sniffer-maven-plugin</artifactId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800189 <version>1.10</version>
mccullsbc7e1502010-10-21 23:36:09 +0000190 <configuration>
191 <signature>
192 <groupId>org.codehaus.mojo.signature</groupId>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800193 <artifactId>java16</artifactId>
mccullsbc7e1502010-10-21 23:36:09 +0000194 <version>1.0</version>
195 </signature>
196 </configuration>
197 <executions>
198 <execution>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800199 <id>check-java-1.6-compat</id>
mccullsbc7e1502010-10-21 23:36:09 +0000200 <phase>process-classes</phase>
201 <goals>
202 <goal>check</goal>
203 </goals>
204 </execution>
205 </executions>
206 </plugin>
mcculls8846db32010-11-04 02:22:00 +0000207 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000208 <artifactId>maven-surefire-plugin</artifactId>
mcculls8846db32010-11-04 02:22:00 +0000209 <version>2.5</version>
mccullsbc7e1502010-10-21 23:36:09 +0000210 <configuration>
211 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Christian Edward Gruberba5acdf2013-10-05 14:05:39 -0700212 <!--<argLine>-Dguice_include_stack_traces=OFF</argLine>-->
mccullsbc7e1502010-10-21 23:36:09 +0000213 </configuration>
Christian Edward Grubere1197a92013-11-12 23:06:31 -0800214 <executions>
215 <execution>
216 <id>stack-traces-off</id>
217 <phase>test</phase>
218 <goals><goal>test</goal></goals>
219 <configuration>
220 <argLine>-Dguice_include_stack_traces=OFF</argLine>
221 </configuration>
222 </execution>
223 <execution>
224 <id>stack-traces-complete</id>
225 <phase>test</phase>
226 <goals><goal>test</goal></goals>
227 <configuration>
228 <argLine>-Dguice_include_stack_traces=COMPLETE</argLine>
229 </configuration>
230 </execution>
231 <execution>
232 <id>default-test</id>
233 <phase>test</phase>
234 <goals><goal>test</goal></goals>
235 <configuration>
236 <argLine>-Dguice_include_stack_traces=ONLY_FOR_DECLARING_SOURCE</argLine>
237 </configuration>
238 </execution>
239 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000240 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000241 <!--
242 | Shared OSGi manifest configuration
243 -->
mccullsbc7e1502010-10-21 23:36:09 +0000244 <plugin>
245 <groupId>org.apache.felix</groupId>
246 <artifactId>maven-bundle-plugin</artifactId>
247 <version>2.1.0</version>
248 <configuration>
249 <instructions>
mcculls8846db32010-11-04 02:22:00 +0000250 <module>com.google.inject</module>
251 <_include>-${project.basedir}/build.properties</_include>
mccullsbc7e1502010-10-21 23:36:09 +0000252 <Bundle-Copyright>Copyright (C) 2006 Google Inc.</Bundle-Copyright>
Sam Berlin0558b322014-07-10 16:33:32 -0400253 <Bundle-DocURL>https://github.com/google/guice</Bundle-DocURL>
mcculls8846db32010-11-04 02:22:00 +0000254 <Bundle-Name>${project.artifactId}</Bundle-Name>
255 <Bundle-SymbolicName>$(module)</Bundle-SymbolicName>
mccullsbc7e1502010-10-21 23:36:09 +0000256 <Bundle-RequiredExecutionEnvironment>
257 J2SE-1.5,JavaSE-1.6
258 </Bundle-RequiredExecutionEnvironment>
259 <Import-Package>!com.google.inject.*,*</Import-Package>
mcculls8846db32010-11-04 02:22:00 +0000260 <_exportcontents>!*.internal.*,$(module).*;version=${guice.api.version}</_exportcontents>
mccullsbc7e1502010-10-21 23:36:09 +0000261 <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
262 <_nouses>true</_nouses>
263 <_removeheaders>
264 Embed-Dependency,Embed-Transitive,
265 Built-By,Tool,Created-By,Build-Jdk,
266 Originally-Created-By,Archiver-Version,
267 Include-Resource,Private-Package,
268 Ignore-Package,Bnd-LastModified
269 </_removeheaders>
270 </instructions>
271 </configuration>
272 <executions>
273 <execution>
274 <phase>prepare-package</phase>
275 <goals>
276 <goal>manifest</goal>
277 </goals>
278 </execution>
279 </executions>
280 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000281 <!--
282 | Package OSGi manifest in final JAR, also create a JAR of the test classes
283 -->
mccullsbc7e1502010-10-21 23:36:09 +0000284 <plugin>
285 <artifactId>maven-jar-plugin</artifactId>
286 <version>2.3.1</version>
287 <configuration>
288 <archive>
289 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
sberlind5fcf7c2011-01-09 16:10:11 +0000290 <!-- Exclude to mirror ant build -->
Sam Berlin45ef0172012-01-13 18:22:35 -0500291 <addMavenDescriptor>false</addMavenDescriptor>
mccullsbc7e1502010-10-21 23:36:09 +0000292 </archive>
293 </configuration>
294 <executions>
295 <execution>
296 <phase>package</phase>
297 <goals>
298 <goal>test-jar</goal>
299 </goals>
300 </execution>
301 </executions>
302 </plugin>
303 <plugin>
304 <artifactId>maven-javadoc-plugin</artifactId>
305 <version>2.7</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700306 <executions>
307 <execution>
308 <phase>package</phase>
309 <goals>
310 <goal>jar</goal>
311 </goals>
312 </execution>
313 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000314 </plugin>
315 <plugin>
316 <artifactId>maven-source-plugin</artifactId>
317 <version>2.1.2</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700318 <executions>
319 <execution>
320 <phase>package</phase>
321 <goals>
322 <goal>jar</goal>
323 <goal>test-jar</goal>
324 </goals>
325 </execution>
326 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000327 </plugin>
328 <plugin>
329 <artifactId>maven-release-plugin</artifactId>
330 <version>2.1</version>
331 <configuration>
332 <autoVersionSubmodules>true</autoVersionSubmodules>
333 </configuration>
334 </plugin>
mccullsc2420fb2010-12-10 15:52:38 +0000335 <plugin>
336 <artifactId>maven-deploy-plugin</artifactId>
337 <version>2.5</version>
338 </plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000339 </plugins>
340 </pluginManagement>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700341 <plugins>
342 <!--
343 | Sign artifacts.
344 -->
345 <plugin>
346 <artifactId>maven-gpg-plugin</artifactId>
347 <version>1.4</version>
348 <executions>
349 <execution>
350 <id>sign-artifacts</id>
351 <phase>verify</phase>
352 <goals><goal>sign</goal></goals>
353 </execution>
354 </executions>
355 </plugin>
356 </plugins>
mccullsbc7e1502010-10-21 23:36:09 +0000357 </build>
358
mcculls88153582010-10-22 00:01:07 +0000359 <profiles>
360 <profile>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400361 <id>doclint-java8-disable</id>
362 <activation>
363 <jdk>[1.8,)</jdk>
364 </activation>
365 <build>
366 <plugins>
367 <plugin>
368 <groupId>org.apache.maven.plugins</groupId>
369 <artifactId>maven-javadoc-plugin</artifactId>
370 <configuration>
371 <additionalparam>-Xdoclint:none</additionalparam>
372 </configuration>
373 </plugin>
374 <plugin>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-site-plugin</artifactId>
377 <version>3.3</version>
378 <configuration>
379 <reportPlugins>
380 <plugin>
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-javadoc-plugin</artifactId>
383 <configuration>
384 <additionalparam>-Xdoclint:none</additionalparam>
385 </configuration>
386 </plugin>
387 </reportPlugins>
388 </configuration>
389 </plugin>
390 </plugins>
391 </build>
392 </profile>
mcculls88153582010-10-22 00:01:07 +0000393 </profiles>
394
crazybobleeac266a22007-02-26 00:07:01 +0000395</project>