1 <?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" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4 <modelVersion>4.0.0</modelVersion> 5 <parent> 6 <groupId>com.google.guava</groupId> 7 <artifactId>guava-parent-jdk5</artifactId> 8 <version>17.0</version> 9 </parent> 10 <artifactId>guava-testlib-jdk5</artifactId> 11 <name>Guava Testing Library (JDK5 Backport)</name> 12 <description> 13 Guava testlib is a set of java classes used for more convenient 14 unit testing - particularly to assist the tests for Guava itself. 15 </description> 16 <dependencies> 17 <dependency> 18 <groupId>com.google.code.findbugs</groupId> 19 <artifactId>jsr305</artifactId> 20 </dependency> 21 <dependency> 22 <groupId>${project.groupId}</groupId> 23 <artifactId>guava-jdk5</artifactId> 24 <version>${project.version}</version> 25 </dependency> 26 <dependency> 27 <groupId>${project.groupId}</groupId> 28 <artifactId>guava-bootstrap-jdk5</artifactId> 29 <version>${project.version}</version> 30 <scope>provided</scope> 31 </dependency> 32 <dependency> 33 <groupId>junit</groupId> 34 <artifactId>junit</artifactId> 35 <scope>compile</scope><!-- testlib must carry these transitively --> 36 </dependency> 37 <dependency> 38 <groupId>org.truth0</groupId> 39 <artifactId>truth</artifactId> 40 <scope>compile</scope><!-- testlib must carry these transitively --> 41 </dependency> 42 </dependencies> 43 <build> 44 <plugins> 45 <plugin> 46 <artifactId>maven-compiler-plugin</artifactId> 47 <configuration> 48 <!-- Prepend guava-bootstrap to avoid an API incompatibility between JDK5 and JDK6 --> 49 <compilerArgument>-Xbootclasspath/p:${project.build.directory}/dependency/guava-bootstrap-jdk5-${project.version}.jar</compilerArgument> 50 </configuration> 51 </plugin> 52 <plugin> 53 <artifactId>maven-dependency-plugin</artifactId> 54 <executions> 55 <execution> 56 <id>prep-guava-bootstrap</id> 57 <phase>process-sources</phase> 58 <goals><goal>copy-dependencies</goal></goals> 59 <configuration> 60 <includeArtifactIds>guava-bootstrap-jdk5</includeArtifactIds> 61 </configuration> 62 </execution> 63 </executions> 64 </plugin> 65 <plugin> 66 <artifactId>maven-source-plugin</artifactId> 67 <executions> 68 <execution> 69 <id>attach-test-sources</id> 70 <phase>post-integration-test</phase> 71 <goals><goal>test-jar</goal></goals> 72 </execution> 73 </executions> 74 </plugin> 75 <plugin> 76 <artifactId>maven-jar-plugin</artifactId> 77 <version>2.3.1</version> 78 <executions> 79 <execution> 80 <goals><goal>test-jar</goal></goals> 81 </execution> 82 </executions> 83 </plugin> 84 <plugin> 85 <groupId>org.codehaus.mojo</groupId> 86 <artifactId>animal-sniffer-maven-plugin</artifactId> 87 </plugin> 88 <plugin> 89 <artifactId>maven-javadoc-plugin</artifactId> 90 </plugin> 91 </plugins> 92 </build> 93 </project> 94