mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
sberlin | b085238 | 2010-08-01 19:55:08 +0000 | [diff] [blame] | 2 | |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 3 | <!-- |
| 4 | Copyright (c) 2006 Google, Inc. All rights reserved. |
| 5 | |
| 6 | This program is licensed to you under the Apache License Version 2.0, |
| 7 | and you may not use this file except in compliance with the Apache License Version 2.0. |
| 8 | You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, |
| 11 | software 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. |
| 13 | See 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> |
| 30 | <version>3.0-SNAPSHOT</version> |
| 31 | |
| 32 | <name>Google Guice</name> |
| 33 | |
| 34 | <description> |
| 35 | Guice is a lightweight dependency injection framework for Java 5 and above |
| 36 | </description> |
| 37 | |
| 38 | <url>http://code.google.com/p/google-guice/</url> |
| 39 | <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> |
| 64 | <connection>scm:svn:http://google-guice.googlecode.com/svn/trunk</connection> |
| 65 | <developerConnection>scm:svn:https://google-guice.googlecode.com/svn/trunk</developerConnection> |
| 66 | <url>http://code.google.com/p/google-guice/source/browse</url> |
| 67 | </scm> |
| 68 | |
| 69 | <issueManagement> |
| 70 | <system>Google Code</system> |
| 71 | <url>http://code.google.com/p/google-guice/issues/</url> |
| 72 | </issueManagement> |
| 73 | |
mcculls | 0009005 | 2010-10-22 00:12:40 +0000 | [diff] [blame] | 74 | <ciManagement> |
| 75 | <system>Hudson</system> |
| 76 | <url>https://grid.sonatype.org/ci/job/Google-Guice/</url> |
| 77 | </ciManagement> |
| 78 | |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 79 | <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 | |
| 92 | <properties> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 93 | <!-- |
| 94 | | The spec version of the public Guice API |
| 95 | --> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 96 | <guice.api.version>1.3</guice.api.version> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 97 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 98 | <!-- |
| 99 | | Use "-Dguice.with.jarjar=false" to build without jarjar |
| 100 | --> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 101 | <guice.with.jarjar>true</guice.with.jarjar> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 102 | <!-- |
| 103 | | Use "-Dguice.with.noaop=false" to skip the no-AOP variant |
| 104 | --> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 105 | <guice.with.noaop>true</guice.with.noaop> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 106 | </properties> |
| 107 | |
| 108 | <dependencies> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 109 | <!-- |
| 110 | | Replace with official CGLIB artifact when it's released |
| 111 | --> |
sberlin | b085238 | 2010-08-01 19:55:08 +0000 | [diff] [blame] | 112 | <dependency> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 113 | <groupId>org.sonatype.sisu.inject</groupId> |
| 114 | <artifactId>cglib</artifactId> |
| 115 | <version>2.2.1</version> |
| 116 | <optional>${guice.with.jarjar}</optional> |
| 117 | </dependency> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 118 | <!-- |
| 119 | | Run tests with TestNG |
| 120 | --> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 121 | <dependency> |
mcculls | 4757520 | 2010-11-04 15:02:41 +0000 | [diff] [blame] | 122 | <groupId>org.testng</groupId> |
| 123 | <artifactId>testng</artifactId> |
| 124 | <version>5.11</version> |
| 125 | <classifier>jdk15</classifier> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 126 | <scope>test</scope> |
sberlin | b085238 | 2010-08-01 19:55:08 +0000 | [diff] [blame] | 127 | </dependency> |
crazyboblee | ac266a2 | 2007-02-26 00:07:01 +0000 | [diff] [blame] | 128 | </dependencies> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 129 | |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 130 | <build> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 131 | <!-- |
| 132 | | Ant-style directories |
| 133 | --> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 134 | <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> |
| 156 | <plugin> |
| 157 | <artifactId>maven-compiler-plugin</artifactId> |
| 158 | <version>2.3.2</version> |
| 159 | </plugin> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 160 | <!-- |
| 161 | | Make sure we only use Java5 methods |
| 162 | --> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 163 | <plugin> |
| 164 | <groupId>org.codehaus.mojo</groupId> |
| 165 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 166 | <version>1.6</version> |
| 167 | <configuration> |
| 168 | <signature> |
| 169 | <groupId>org.codehaus.mojo.signature</groupId> |
| 170 | <artifactId>java15</artifactId> |
| 171 | <version>1.0</version> |
| 172 | </signature> |
| 173 | </configuration> |
| 174 | <executions> |
| 175 | <execution> |
| 176 | <id>check-java-1.5-compat</id> |
| 177 | <phase>process-classes</phase> |
| 178 | <goals> |
| 179 | <goal>check</goal> |
| 180 | </goals> |
| 181 | </execution> |
| 182 | </executions> |
| 183 | </plugin> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 184 | <!-- |
| 185 | | Shared JarJar configuration |
| 186 | --> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 187 | <plugin> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 188 | <groupId>org.sonatype.plugins</groupId> |
| 189 | <artifactId>jarjar-maven-plugin</artifactId> |
mcculls | 2c3076b | 2010-11-04 02:36:40 +0000 | [diff] [blame] | 190 | <version>1.3</version> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 191 | <configuration> |
| 192 | <rules> |
| 193 | <rule> |
| 194 | <pattern>net.sf.cglib.*</pattern> |
| 195 | <result>com.google.inject.internal.cglib.$@1</result> |
| 196 | </rule> |
| 197 | <rule> |
| 198 | <pattern>net.sf.cglib.**.*</pattern> |
| 199 | <result>com.google.inject.internal.cglib.@1.$@2</result> |
| 200 | </rule> |
| 201 | <rule> |
| 202 | <pattern>org.objectweb.asm.*</pattern> |
| 203 | <result>com.google.inject.internal.asm.$@1</result> |
| 204 | </rule> |
| 205 | <rule> |
| 206 | <pattern>org.objectweb.asm.**.*</pattern> |
| 207 | <result>com.google.inject.internal.asm.@1.$@2</result> |
| 208 | </rule> |
| 209 | <rule> |
| 210 | <pattern>com.google.inject.internal.util.*</pattern> |
| 211 | <result>com.google.inject.internal.util.$@1</result> |
| 212 | </rule> |
| 213 | <rule> |
| 214 | <pattern>com.google.inject.internal.util.**.*</pattern> |
| 215 | <result>com.google.inject.internal.util.@1.$@2</result> |
| 216 | </rule> |
| 217 | <keep> |
| 218 | <pattern>com.google.inject.**</pattern> |
| 219 | </keep> |
mcculls | 188875a | 2010-11-04 02:49:55 +0000 | [diff] [blame] | 220 | <keep> |
| 221 | <pattern>com.googlecode.**</pattern> |
| 222 | </keep> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 223 | </rules> |
| 224 | </configuration> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 225 | <!-- |
| 226 | | JarJar all classes before running tests |
| 227 | --> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 228 | <executions> |
| 229 | <execution> |
| 230 | <id>jarjar-classes</id> |
| 231 | <phase>process-test-classes</phase> |
| 232 | <goals> |
| 233 | <goal>jarjar</goal> |
| 234 | </goals> |
| 235 | <configuration> |
| 236 | <input>{classes}</input> |
| 237 | </configuration> |
| 238 | </execution> |
| 239 | <execution> |
| 240 | <id>jarjar-test-classes</id> |
| 241 | <phase>process-test-classes</phase> |
| 242 | <goals> |
| 243 | <goal>jarjar</goal> |
| 244 | </goals> |
| 245 | <configuration> |
| 246 | <input>{test-classes}</input> |
| 247 | </configuration> |
| 248 | </execution> |
| 249 | </executions> |
| 250 | </plugin> |
| 251 | <plugin> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 252 | <artifactId>maven-surefire-plugin</artifactId> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 253 | <version>2.5</version> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 254 | <configuration> |
| 255 | <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| 256 | </configuration> |
| 257 | </plugin> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 258 | <!-- |
| 259 | | Shared OSGi manifest configuration |
| 260 | --> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 261 | <plugin> |
| 262 | <groupId>org.apache.felix</groupId> |
| 263 | <artifactId>maven-bundle-plugin</artifactId> |
| 264 | <version>2.1.0</version> |
| 265 | <configuration> |
| 266 | <instructions> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 267 | <module>com.google.inject</module> |
| 268 | <_include>-${project.basedir}/build.properties</_include> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 269 | <Bundle-Copyright>Copyright (C) 2006 Google Inc.</Bundle-Copyright> |
| 270 | <Bundle-DocURL>http://code.google.com/p/google-guice/</Bundle-DocURL> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 271 | <Bundle-Name>${project.artifactId}</Bundle-Name> |
| 272 | <Bundle-SymbolicName>$(module)</Bundle-SymbolicName> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 273 | <Bundle-RequiredExecutionEnvironment> |
| 274 | J2SE-1.5,JavaSE-1.6 |
| 275 | </Bundle-RequiredExecutionEnvironment> |
| 276 | <Import-Package>!com.google.inject.*,*</Import-Package> |
mcculls | 8846db3 | 2010-11-04 02:22:00 +0000 | [diff] [blame] | 277 | <_exportcontents>!*.internal.*,$(module).*;version=${guice.api.version}</_exportcontents> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 278 | <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy> |
| 279 | <_nouses>true</_nouses> |
| 280 | <_removeheaders> |
| 281 | Embed-Dependency,Embed-Transitive, |
| 282 | Built-By,Tool,Created-By,Build-Jdk, |
| 283 | Originally-Created-By,Archiver-Version, |
| 284 | Include-Resource,Private-Package, |
| 285 | Ignore-Package,Bnd-LastModified |
| 286 | </_removeheaders> |
| 287 | </instructions> |
| 288 | </configuration> |
| 289 | <executions> |
| 290 | <execution> |
| 291 | <phase>prepare-package</phase> |
| 292 | <goals> |
| 293 | <goal>manifest</goal> |
| 294 | </goals> |
| 295 | </execution> |
| 296 | </executions> |
| 297 | </plugin> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 298 | <!-- |
| 299 | | Package OSGi manifest in final JAR, also create a JAR of the test classes |
| 300 | --> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 301 | <plugin> |
| 302 | <artifactId>maven-jar-plugin</artifactId> |
| 303 | <version>2.3.1</version> |
| 304 | <configuration> |
| 305 | <archive> |
| 306 | <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
| 307 | </archive> |
| 308 | </configuration> |
| 309 | <executions> |
| 310 | <execution> |
| 311 | <phase>package</phase> |
| 312 | <goals> |
| 313 | <goal>test-jar</goal> |
| 314 | </goals> |
| 315 | </execution> |
| 316 | </executions> |
| 317 | </plugin> |
| 318 | <plugin> |
| 319 | <artifactId>maven-javadoc-plugin</artifactId> |
| 320 | <version>2.7</version> |
| 321 | </plugin> |
| 322 | <plugin> |
| 323 | <artifactId>maven-source-plugin</artifactId> |
| 324 | <version>2.1.2</version> |
| 325 | </plugin> |
| 326 | <plugin> |
| 327 | <artifactId>maven-gpg-plugin</artifactId> |
| 328 | <version>1.1</version> |
| 329 | </plugin> |
| 330 | <plugin> |
| 331 | <artifactId>maven-release-plugin</artifactId> |
| 332 | <version>2.1</version> |
| 333 | <configuration> |
| 334 | <autoVersionSubmodules>true</autoVersionSubmodules> |
| 335 | </configuration> |
| 336 | </plugin> |
| 337 | </plugins> |
| 338 | </pluginManagement> |
mcculls | bc7e150 | 2010-10-21 23:36:09 +0000 | [diff] [blame] | 339 | </build> |
| 340 | |
mcculls | 8815358 | 2010-10-22 00:01:07 +0000 | [diff] [blame] | 341 | <profiles> |
| 342 | <profile> |
mcculls | aacb484 | 2010-11-04 22:51:25 +0000 | [diff] [blame^] | 343 | <!-- |
| 344 | | Deployment profile for the Sonatype Grid |
| 345 | --> |
mcculls | 8815358 | 2010-10-22 00:01:07 +0000 | [diff] [blame] | 346 | <id>sonatype-grid</id> |
mcculls | ec49188 | 2010-10-22 00:10:06 +0000 | [diff] [blame] | 347 | <properties> |
| 348 | <forgeReleaseId>forge-releases</forgeReleaseId> |
| 349 | <forgeReleaseUrl>http://repository.sonatype.org:8081/service/local/staging/deploy/maven2</forgeReleaseUrl> |
| 350 | <forgeSnapshotId>forge-snapshots</forgeSnapshotId> |
| 351 | <forgeSnapshotUrl>http://repository.sonatype.org/content/repositories/snapshots</forgeSnapshotUrl> |
| 352 | </properties> |
mcculls | 8815358 | 2010-10-22 00:01:07 +0000 | [diff] [blame] | 353 | <distributionManagement> |
| 354 | <repository> |
mcculls | ec49188 | 2010-10-22 00:10:06 +0000 | [diff] [blame] | 355 | <id>${forgeReleaseId}</id> |
| 356 | <url>${forgeReleaseUrl}</url> |
mcculls | 8815358 | 2010-10-22 00:01:07 +0000 | [diff] [blame] | 357 | </repository> |
| 358 | <snapshotRepository> |
mcculls | ec49188 | 2010-10-22 00:10:06 +0000 | [diff] [blame] | 359 | <id>${forgeSnapshotId}</id> |
| 360 | <url>${forgeSnapshotUrl}</url> |
mcculls | 8815358 | 2010-10-22 00:01:07 +0000 | [diff] [blame] | 361 | </snapshotRepository> |
| 362 | </distributionManagement> |
| 363 | </profile> |
| 364 | </profiles> |
| 365 | |
crazyboblee | ac266a2 | 2007-02-26 00:07:01 +0000 | [diff] [blame] | 366 | </project> |