blob: 07f11b08bfd3521dd508f06736ee68e9d7e4f9c9 [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>
Stuart McCulloch7d727712012-08-31 10:41:33 +01009 <version>3.1.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>
mccullsca183a62011-04-20 22:28:09 +000017 <cglib.version>2.2.2</cglib.version>
mcculls4d4e1602010-11-24 21:16:07 +000018 </properties>
19
mccullsbc7e1502010-10-21 23:36:09 +000020 <dependencies>
21 <dependency>
22 <groupId>javax.inject</groupId>
23 <artifactId>javax.inject</artifactId>
mcculls8846db32010-11-04 02:22:00 +000024 <version>1</version>
mccullsbc7e1502010-10-21 23:36:09 +000025 </dependency>
26 <dependency>
27 <groupId>aopalliance</groupId>
28 <artifactId>aopalliance</artifactId>
mcculls8846db32010-11-04 02:22:00 +000029 <version>1.0</version>
mccullsbc7e1502010-10-21 23:36:09 +000030 </dependency>
mcculls4d4e1602010-11-24 21:16:07 +000031 <dependency>
sberlind9c913a2011-06-26 21:02:54 +000032 <groupId>com.google.guava</groupId>
33 <artifactId>guava</artifactId>
Sam Berlin45ef0172012-01-13 18:22:35 -050034 <version>11.0.1</version>
sberlind9c913a2011-06-26 21:02:54 +000035 </dependency>
36 <dependency>
mccullse7511fd2011-05-10 16:12:59 +000037 <groupId>cglib</groupId>
mcculls4d4e1602010-11-24 21:16:07 +000038 <artifactId>cglib</artifactId>
39 <version>${cglib.version}</version>
40 </dependency>
mccullsbc7e1502010-10-21 23:36:09 +000041 <dependency>
42 <groupId>javax.inject</groupId>
43 <artifactId>javax.inject-tck</artifactId>
mcculls8846db32010-11-04 02:22:00 +000044 <version>1</version>
mccullsbc7e1502010-10-21 23:36:09 +000045 <scope>test</scope>
46 </dependency>
47 <dependency>
48 <groupId>org.springframework</groupId>
49 <artifactId>spring-beans</artifactId>
mcculls8846db32010-11-04 02:22:00 +000050 <version>3.0.5.RELEASE</version>
mccullsbc7e1502010-10-21 23:36:09 +000051 <scope>test</scope>
52 </dependency>
53 <dependency>
54 <groupId>biz.aQute</groupId>
55 <artifactId>bnd</artifactId>
mcculls8846db32010-11-04 02:22:00 +000056 <version>0.0.384</version>
mccullsbc7e1502010-10-21 23:36:09 +000057 <scope>test</scope>
58 </dependency>
59 <dependency>
60 <groupId>org.apache.felix</groupId>
61 <artifactId>org.apache.felix.framework</artifactId>
mcculls8846db32010-11-04 02:22:00 +000062 <version>3.0.5</version>
mccullsbc7e1502010-10-21 23:36:09 +000063 <scope>test</scope>
64 </dependency>
65 </dependencies>
66
67 <build>
68 <plugins>
mccullsaacb4842010-11-04 22:51:25 +000069 <!--
mcculls33018c32011-01-04 15:16:27 +000070 | Add standard LICENSE and NOTICE files
71 -->
72 <plugin>
73 <artifactId>maven-remote-resources-plugin</artifactId>
74 </plugin>
75 <!--
mccullsaacb4842010-11-04 22:51:25 +000076 | Enable Java5 conformance checks
77 -->
mccullsbc7e1502010-10-21 23:36:09 +000078 <plugin>
mcculls8846db32010-11-04 02:22:00 +000079 <groupId>org.codehaus.mojo</groupId>
80 <artifactId>animal-sniffer-maven-plugin</artifactId>
81 </plugin>
82 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +000083 <artifactId>maven-surefire-plugin</artifactId>
84 <configuration>
mccullsaacb4842010-11-04 22:51:25 +000085 <!--
86 | Temporarily excluded tests
87 -->
mcculls8846db32010-11-04 02:22:00 +000088 <excludes>
89 <exclude>**/OSGiContainerTest*</exclude>
90 <exclude>**/ScopesTest*</exclude>
91 <exclude>**/TypeConversionTest*</exclude>
mcculls8846db32010-11-04 02:22:00 +000092 </excludes>
mccullsbc7e1502010-10-21 23:36:09 +000093 </configuration>
94 </plugin>
mccullsaacb4842010-11-04 22:51:25 +000095 <!--
96 | Add OSGi manifest
97 -->
mccullsbc7e1502010-10-21 23:36:09 +000098 <plugin>
99 <groupId>org.apache.felix</groupId>
100 <artifactId>maven-bundle-plugin</artifactId>
Sam Berlin88b6d132012-01-13 18:32:04 -0500101 <configuration>
102 <instructions>
103 <Eclipse-ExtensibleAPI>true</Eclipse-ExtensibleAPI>
104 </instructions>
105 </configuration>
mccullsbc7e1502010-10-21 23:36:09 +0000106 </plugin>
mcculls33018c32011-01-04 15:16:27 +0000107 <!--
108 | Remove duplicate jarjar'd LICENSE and NOTICE
109 -->
110 <plugin>
111 <artifactId>maven-jar-plugin</artifactId>
112 <configuration>
113 <excludes>
114 <exclude>LICENSE</exclude>
115 <exclude>NOTICE</exclude>
116 </excludes>
117 </configuration>
118 </plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000119 </plugins>
120 </build>
121
mcculls8846db32010-11-04 02:22:00 +0000122 <profiles>
123 <profile>
mccullsaacb4842010-11-04 22:51:25 +0000124 <!--
125 | No-AOP profile: repeat the build lifecycle with munged no-AOP source
126 -->
mcculls692ca952010-12-10 15:05:01 +0000127 <id>guice.with.no_aop</id>
mcculls8846db32010-11-04 02:22:00 +0000128 <activation>
129 <property>
mcculls692ca952010-12-10 15:05:01 +0000130 <name>guice.with.no_aop</name>
mcculls8846db32010-11-04 02:22:00 +0000131 <value>!false</value>
132 </property>
133 </activation>
134 <build>
135 <plugins>
136 <plugin>
137 <groupId>org.sonatype.plugins</groupId>
138 <artifactId>munge-maven-plugin</artifactId>
139 <version>1.0</version>
140 <executions>
141 <execution>
142 <phase>prepare-package</phase>
143 <goals>
144 <goal>munge-fork</goal>
145 </goals>
146 <configuration>
147 <symbols>NO_AOP</symbols>
148 <excludes>
149 **/InterceptorBinding.java,
150 **/InterceptorBindingProcessor.java,
151 **/InterceptorStackCallback.java,
152 **/LineNumbers.java,
153 **/MethodAspect.java,
154 **/ProxyFactory.java,
155 **/BytecodeGenTest.java,
156 **/IntegrationTest.java,
157 **/MethodInterceptionTest.java,
158 **/ProxyFactoryTest.java
159 </excludes>
160 </configuration>
161 </execution>
162 </executions>
163 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000164 <!--
mcculls692ca952010-12-10 15:05:01 +0000165 | Package the no-AOP build with its own OSGi manifest and attach using "no_aop" classifier
mccullsaacb4842010-11-04 22:51:25 +0000166 -->
mcculls8846db32010-11-04 02:22:00 +0000167 <plugin>
168 <artifactId>maven-jar-plugin</artifactId>
169 <executions>
170 <execution>
mcculls692ca952010-12-10 15:05:01 +0000171 <id>no_aop</id>
mcculls8846db32010-11-04 02:22:00 +0000172 <phase>package</phase>
173 <goals>
174 <goal>jar</goal>
175 </goals>
176 <configuration>
177 <classesDirectory>${project.build.directory}/munged/classes</classesDirectory>
mcculls692ca952010-12-10 15:05:01 +0000178 <classifier>no_aop</classifier>
mcculls8846db32010-11-04 02:22:00 +0000179 <archive>
180 <manifestFile>${project.build.directory}/munged/classes/META-INF/MANIFEST.MF</manifestFile>
181 </archive>
182 </configuration>
183 </execution>
184 </executions>
185 </plugin>
186 </plugins>
187 </build>
188 </profile>
189 <profile>
mccullsaacb4842010-11-04 22:51:25 +0000190 <!--
191 | JarJar build profile: re-package ASM and CGLIB classes under the Guice namespace
192 -->
mcculls8846db32010-11-04 02:22:00 +0000193 <id>guice.with.jarjar</id>
194 <activation>
195 <property>
196 <name>guice.with.jarjar</name>
197 <value>!false</value>
198 </property>
199 </activation>
mcculls4d4e1602010-11-24 21:16:07 +0000200 <dependencies>
201 <!--
202 | Mark as optional: embedded by JarJar
203 -->
204 <dependency>
mccullse7511fd2011-05-10 16:12:59 +0000205 <groupId>cglib</groupId>
mcculls4d4e1602010-11-24 21:16:07 +0000206 <artifactId>cglib</artifactId>
207 <version>${cglib.version}</version>
208 <optional>true</optional>
209 </dependency>
210 </dependencies>
mcculls8846db32010-11-04 02:22:00 +0000211 <build>
212 <plugins>
213 <plugin>
214 <groupId>org.sonatype.plugins</groupId>
215 <artifactId>jarjar-maven-plugin</artifactId>
216 <configuration>
217 <includes>
218 <include>*:asm</include>
219 <include>*:cglib</include>
sberlind9c913a2011-06-26 21:02:54 +0000220 <include>*:guava</include>
221 <include>*:jsr305</include>
mcculls8846db32010-11-04 02:22:00 +0000222 </includes>
223 </configuration>
224 </plugin>
225 <plugin>
mccullsaacb4842010-11-04 22:51:25 +0000226 <!--
227 | Package the original non-JarJar'd classes so extensions can compile against them
228 -->
mcculls8846db32010-11-04 02:22:00 +0000229 <artifactId>maven-jar-plugin</artifactId>
230 <executions>
231 <execution>
mcculls692ca952010-12-10 15:05:01 +0000232 <id>no_deps</id>
mcculls8846db32010-11-04 02:22:00 +0000233 <phase>package</phase>
234 <goals>
235 <goal>jar</goal>
236 </goals>
237 <configuration>
238 <classesDirectory>${project.build.directory}/original-classes</classesDirectory>
mcculls692ca952010-12-10 15:05:01 +0000239 <classifier>no_deps</classifier>
mcculls8846db32010-11-04 02:22:00 +0000240 </configuration>
241 </execution>
242 </executions>
243 </plugin>
244 </plugins>
245 </build>
246 </profile>
247 </profiles>
248
mccullsbc7e1502010-10-21 23:36:09 +0000249</project>