blob: 328af17e333fbab6af8b3ac071e317cc93494b3f [file] [log] [blame]
mccullsbc7e1502010-10-21 23:36:09 +00001<?xml version="1.0" encoding="UTF-8"?>
2<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">
3
4 <modelVersion>4.0.0</modelVersion>
5
6 <parent>
7 <groupId>com.google.inject</groupId>
8 <artifactId>guice-parent</artifactId>
Christian Edward Grubera0e73442013-07-31 18:53:09 -07009 <version>4.0-SNAPSHOT</version>
mccullsbc7e1502010-10-21 23:36:09 +000010 </parent>
11
12 <artifactId>guice</artifactId>
13
14 <name>Google Guice - Core Library</name>
15
mcculls4d4e1602010-11-24 21:16:07 +000016 <properties>
Christian Edward Grubera1867f82013-05-15 17:52:45 -070017 <cglib.version>3.0</cglib.version>
Christian Edward Gruber3f425142013-06-06 15:55:47 -070018 <asm.version>4.0</asm.version>
mcculls4d4e1602010-11-24 21:16:07 +000019 </properties>
20
mccullsbc7e1502010-10-21 23:36:09 +000021 <dependencies>
22 <dependency>
23 <groupId>javax.inject</groupId>
24 <artifactId>javax.inject</artifactId>
mcculls8846db32010-11-04 02:22:00 +000025 <version>1</version>
mccullsbc7e1502010-10-21 23:36:09 +000026 </dependency>
27 <dependency>
28 <groupId>aopalliance</groupId>
29 <artifactId>aopalliance</artifactId>
mcculls8846db32010-11-04 02:22:00 +000030 <version>1.0</version>
mccullsbc7e1502010-10-21 23:36:09 +000031 </dependency>
mcculls4d4e1602010-11-24 21:16:07 +000032 <dependency>
sberlind9c913a2011-06-26 21:02:54 +000033 <groupId>com.google.guava</groupId>
34 <artifactId>guava</artifactId>
Sam Berlin45ef0172012-01-13 18:22:35 -050035 <version>11.0.1</version>
sberlind9c913a2011-06-26 21:02:54 +000036 </dependency>
37 <dependency>
mccullse7511fd2011-05-10 16:12:59 +000038 <groupId>cglib</groupId>
mcculls4d4e1602010-11-24 21:16:07 +000039 <artifactId>cglib</artifactId>
40 <version>${cglib.version}</version>
41 </dependency>
mccullsbc7e1502010-10-21 23:36:09 +000042 <dependency>
Christian Edward Gruber3f425142013-06-06 15:55:47 -070043 <groupId>org.ow2.asm</groupId>
44 <artifactId>asm-util</artifactId>
45 <version>${asm.version}</version>
46 </dependency>
47 <dependency>
mccullsbc7e1502010-10-21 23:36:09 +000048 <groupId>javax.inject</groupId>
49 <artifactId>javax.inject-tck</artifactId>
mcculls8846db32010-11-04 02:22:00 +000050 <version>1</version>
mccullsbc7e1502010-10-21 23:36:09 +000051 <scope>test</scope>
52 </dependency>
53 <dependency>
54 <groupId>org.springframework</groupId>
55 <artifactId>spring-beans</artifactId>
mcculls8846db32010-11-04 02:22:00 +000056 <version>3.0.5.RELEASE</version>
mccullsbc7e1502010-10-21 23:36:09 +000057 <scope>test</scope>
58 </dependency>
59 <dependency>
60 <groupId>biz.aQute</groupId>
61 <artifactId>bnd</artifactId>
mcculls8846db32010-11-04 02:22:00 +000062 <version>0.0.384</version>
mccullsbc7e1502010-10-21 23:36:09 +000063 <scope>test</scope>
64 </dependency>
65 <dependency>
66 <groupId>org.apache.felix</groupId>
67 <artifactId>org.apache.felix.framework</artifactId>
mcculls8846db32010-11-04 02:22:00 +000068 <version>3.0.5</version>
mccullsbc7e1502010-10-21 23:36:09 +000069 <scope>test</scope>
70 </dependency>
71 </dependencies>
72
73 <build>
74 <plugins>
mccullsaacb4842010-11-04 22:51:25 +000075 <!--
mcculls33018c32011-01-04 15:16:27 +000076 | Add standard LICENSE and NOTICE files
77 -->
78 <plugin>
79 <artifactId>maven-remote-resources-plugin</artifactId>
80 </plugin>
81 <!--
mccullsaacb4842010-11-04 22:51:25 +000082 | Enable Java5 conformance checks
83 -->
mccullsbc7e1502010-10-21 23:36:09 +000084 <plugin>
mcculls8846db32010-11-04 02:22:00 +000085 <groupId>org.codehaus.mojo</groupId>
86 <artifactId>animal-sniffer-maven-plugin</artifactId>
87 </plugin>
88 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +000089 <artifactId>maven-surefire-plugin</artifactId>
90 <configuration>
mccullsaacb4842010-11-04 22:51:25 +000091 <!--
92 | Temporarily excluded tests
93 -->
mcculls8846db32010-11-04 02:22:00 +000094 <excludes>
95 <exclude>**/OSGiContainerTest*</exclude>
96 <exclude>**/ScopesTest*</exclude>
97 <exclude>**/TypeConversionTest*</exclude>
mcculls8846db32010-11-04 02:22:00 +000098 </excludes>
mccullsbc7e1502010-10-21 23:36:09 +000099 </configuration>
100 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000101 <!--
102 | Add OSGi manifest
103 -->
mccullsbc7e1502010-10-21 23:36:09 +0000104 <plugin>
105 <groupId>org.apache.felix</groupId>
106 <artifactId>maven-bundle-plugin</artifactId>
Sam Berlin88b6d132012-01-13 18:32:04 -0500107 <configuration>
108 <instructions>
109 <Eclipse-ExtensibleAPI>true</Eclipse-ExtensibleAPI>
110 </instructions>
111 </configuration>
mccullsbc7e1502010-10-21 23:36:09 +0000112 </plugin>
mcculls33018c32011-01-04 15:16:27 +0000113 <!--
114 | Remove duplicate jarjar'd LICENSE and NOTICE
115 -->
116 <plugin>
117 <artifactId>maven-jar-plugin</artifactId>
118 <configuration>
119 <excludes>
120 <exclude>LICENSE</exclude>
121 <exclude>NOTICE</exclude>
122 </excludes>
123 </configuration>
124 </plugin>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700125 <!--
126 | Generate sources jar
127 -->
128 <plugin>
129 <artifactId>maven-source-plugin</artifactId>
130 </plugin>
131 <!--
132 | Generate javadoc jar
133 -->
134 <plugin>
135 <artifactId>maven-javadoc-plugin</artifactId>
136 </plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000137 </plugins>
138 </build>
139
mcculls8846db32010-11-04 02:22:00 +0000140 <profiles>
141 <profile>
mccullsaacb4842010-11-04 22:51:25 +0000142 <!--
143 | No-AOP profile: repeat the build lifecycle with munged no-AOP source
144 -->
mcculls692ca952010-12-10 15:05:01 +0000145 <id>guice.with.no_aop</id>
mcculls8846db32010-11-04 02:22:00 +0000146 <activation>
147 <property>
mcculls692ca952010-12-10 15:05:01 +0000148 <name>guice.with.no_aop</name>
mcculls8846db32010-11-04 02:22:00 +0000149 <value>!false</value>
150 </property>
151 </activation>
152 <build>
153 <plugins>
154 <plugin>
155 <groupId>org.sonatype.plugins</groupId>
156 <artifactId>munge-maven-plugin</artifactId>
157 <version>1.0</version>
158 <executions>
159 <execution>
160 <phase>prepare-package</phase>
161 <goals>
162 <goal>munge-fork</goal>
163 </goals>
164 <configuration>
165 <symbols>NO_AOP</symbols>
166 <excludes>
167 **/InterceptorBinding.java,
168 **/InterceptorBindingProcessor.java,
169 **/InterceptorStackCallback.java,
170 **/LineNumbers.java,
171 **/MethodAspect.java,
172 **/ProxyFactory.java,
173 **/BytecodeGenTest.java,
174 **/IntegrationTest.java,
175 **/MethodInterceptionTest.java,
176 **/ProxyFactoryTest.java
177 </excludes>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000182 <!--
mcculls692ca952010-12-10 15:05:01 +0000183 | Package the no-AOP build with its own OSGi manifest and attach using "no_aop" classifier
mccullsaacb4842010-11-04 22:51:25 +0000184 -->
mcculls8846db32010-11-04 02:22:00 +0000185 <plugin>
186 <artifactId>maven-jar-plugin</artifactId>
187 <executions>
188 <execution>
mcculls692ca952010-12-10 15:05:01 +0000189 <id>no_aop</id>
mcculls8846db32010-11-04 02:22:00 +0000190 <phase>package</phase>
191 <goals>
192 <goal>jar</goal>
193 </goals>
194 <configuration>
195 <classesDirectory>${project.build.directory}/munged/classes</classesDirectory>
mcculls692ca952010-12-10 15:05:01 +0000196 <classifier>no_aop</classifier>
mcculls8846db32010-11-04 02:22:00 +0000197 <archive>
198 <manifestFile>${project.build.directory}/munged/classes/META-INF/MANIFEST.MF</manifestFile>
199 </archive>
200 </configuration>
201 </execution>
202 </executions>
203 </plugin>
204 </plugins>
205 </build>
206 </profile>
207 <profile>
mccullsaacb4842010-11-04 22:51:25 +0000208 <!--
209 | JarJar build profile: re-package ASM and CGLIB classes under the Guice namespace
210 -->
mcculls8846db32010-11-04 02:22:00 +0000211 <id>guice.with.jarjar</id>
212 <activation>
213 <property>
214 <name>guice.with.jarjar</name>
215 <value>!false</value>
216 </property>
217 </activation>
mcculls4d4e1602010-11-24 21:16:07 +0000218 <dependencies>
219 <!--
220 | Mark as optional: embedded by JarJar
221 -->
222 <dependency>
mccullse7511fd2011-05-10 16:12:59 +0000223 <groupId>cglib</groupId>
mcculls4d4e1602010-11-24 21:16:07 +0000224 <artifactId>cglib</artifactId>
225 <version>${cglib.version}</version>
226 <optional>true</optional>
227 </dependency>
Christian Edward Gruber3f425142013-06-06 15:55:47 -0700228 <dependency>
229 <groupId>org.ow2.asm</groupId>
230 <artifactId>asm-util</artifactId>
231 <version>${asm.version}</version>
232 <optional>true</optional>
233 </dependency>
mcculls4d4e1602010-11-24 21:16:07 +0000234 </dependencies>
mcculls8846db32010-11-04 02:22:00 +0000235 <build>
236 <plugins>
237 <plugin>
238 <groupId>org.sonatype.plugins</groupId>
239 <artifactId>jarjar-maven-plugin</artifactId>
240 <configuration>
241 <includes>
Christian Edward Gruber3f425142013-06-06 15:55:47 -0700242 <include>*:asm*</include>
mcculls8846db32010-11-04 02:22:00 +0000243 <include>*:cglib</include>
sberlind9c913a2011-06-26 21:02:54 +0000244 <include>*:guava</include>
245 <include>*:jsr305</include>
mcculls8846db32010-11-04 02:22:00 +0000246 </includes>
247 </configuration>
248 </plugin>
249 <plugin>
mccullsaacb4842010-11-04 22:51:25 +0000250 <!--
251 | Package the original non-JarJar'd classes so extensions can compile against them
252 -->
mcculls8846db32010-11-04 02:22:00 +0000253 <artifactId>maven-jar-plugin</artifactId>
254 <executions>
255 <execution>
mcculls692ca952010-12-10 15:05:01 +0000256 <id>no_deps</id>
mcculls8846db32010-11-04 02:22:00 +0000257 <phase>package</phase>
258 <goals>
259 <goal>jar</goal>
260 </goals>
261 <configuration>
262 <classesDirectory>${project.build.directory}/original-classes</classesDirectory>
mcculls692ca952010-12-10 15:05:01 +0000263 <classifier>no_deps</classifier>
mcculls8846db32010-11-04 02:22:00 +0000264 </configuration>
265 </execution>
266 </executions>
267 </plugin>
268 </plugins>
269 </build>
270 </profile>
271 </profiles>
272
mccullsbc7e1502010-10-21 23:36:09 +0000273</project>