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</artifactId> 8 <version>18.0</version> 9 </parent> 10 <artifactId>guava</artifactId> 11 <name>Guava: Google Core Libraries for Java</name> 12 <packaging>bundle</packaging> 13 <description> 14 Guava is a suite of core and expanded libraries that include 15 utility classes, google's collections, io classes, and much 16 much more. 17 18 Guava has only one code dependency - javax.annotation, 19 per the JSR-305 spec. 20 </description> 21 <dependencies> 22 <dependency> 23 <groupId>com.google.code.findbugs</groupId> 24 <artifactId>jsr305</artifactId> 25 <optional>true</optional><!-- needed only for annotations --> 26 </dependency> 27 <!-- TODO(cpovirk): want this only for dependency plugin but seems not to work there? Maven runs without failure, but the resulting Javadoc is missing the hoped-for inherited text --> 28 </dependencies> 29 <build> 30 <plugins> 31 <plugin> 32 <groupId>org.apache.felix</groupId> 33 <artifactId>maven-bundle-plugin</artifactId> 34 <version>2.3.7</version> 35 <extensions>true</extensions> 36 <executions> 37 <execution> 38 <id>bundle-manifest</id> 39 <phase>process-classes</phase> 40 <goals> 41 <goal>manifest</goal> 42 </goals> 43 </execution> 44 </executions> 45 <configuration> 46 <instructions> 47 <Export-Package>!com.google.common.base.internal,com.google.common.*</Export-Package> 48 <Import-Package> 49 javax.annotation;resolution:=optional, 50 sun.misc.*;resolution:=optional 51 </Import-Package> 52 <Bundle-DocURL>https://guava-libraries.googlecode.com/</Bundle-DocURL> 53 </instructions> 54 </configuration> 55 </plugin> 56 <plugin> 57 <artifactId>maven-compiler-plugin</artifactId> 58 </plugin> 59 <plugin> 60 <artifactId>maven-source-plugin</artifactId> 61 </plugin> 62 <!-- TODO(cpovirk): include JDK sources when building testlib doc, too --> 63 <plugin> 64 <artifactId>maven-dependency-plugin</artifactId> 65 <executions> 66 <execution> 67 <id>unpack-jdk-sources</id> 68 <phase>site</phase> 69 <goals><goal>unpack-dependencies</goal></goals> 70 <configuration> 71 <includeArtifactIds>srczip</includeArtifactIds> 72 <overWrite>true</overWrite> 73 <outputDirectory>${project.build.directory}/jdk-sources</outputDirectory> 74 <silent>false</silent> 75 </configuration> 76 </execution> 77 </executions> 78 </plugin> 79 <plugin> 80 <groupId>org.codehaus.mojo</groupId> 81 <artifactId>animal-sniffer-maven-plugin</artifactId> 82 </plugin> 83 <plugin> 84 <groupId>org.apache.maven.plugins</groupId> 85 <artifactId>maven-javadoc-plugin</artifactId> 86 <configuration> 87 <encoding>UTF-8</encoding> 88 <docencoding>UTF-8</docencoding> 89 <charset>UTF-8</charset> 90 <additionalparam>-XDignore.symbol.file</additionalparam> 91 <excludePackageNames>com.google.common.base.internal</excludePackageNames> 92 <linksource>true</linksource> 93 <links> 94 <link>http://jsr-305.googlecode.com/svn/trunk/javadoc</link> 95 <link>http://docs.oracle.com/javase/7/docs/api/</link> 96 </links> 97 <!-- TODO(cpovirk): can we use includeDependencySources and a local com.oracle.java:jdk-lib:noversion:sources instead of all this unzipping and manual sourcepath modification? --> 98 <sourcepath>${project.build.sourceDirectory}:${project.build.directory}/jdk-sources</sourcepath> 99 <subpackages>com.google.common</subpackages> 100 </configuration> 101 <executions> 102 <execution> 103 <id>attach-docs</id> 104 </execution> 105 <execution> 106 <id>generate-javadoc-site-report</id> 107 <phase>site</phase> 108 <goals><goal>javadoc</goal></goals> 109 </execution> 110 <execution> 111 <id>generate-jdiff-site-report</id> 112 <phase>site</phase> 113 <goals><goal>javadoc</goal></goals> 114 <configuration> 115 <doclet>jdiff.JDiff</doclet> 116 <docletPath>${project.basedir}/lib/jdiff.jar</docletPath> 117 <additionalparam> 118 -XDignore.symbol.file -apiname 'Guava ${project.version}' 119 </additionalparam> 120 <useStandardDocletOptions>false</useStandardDocletOptions> 121 <reportOutputDirectory>${project.reporting.outputDirectory}</reportOutputDirectory> 122 <destDir>jdiff</destDir> 123 </configuration> 124 </execution> 125 </executions> 126 </plugin> 127 </plugins> 128 </build> 129 <profiles> 130 <profile> 131 <id>srczip</id> 132 <activation> 133 <file> 134 <exists>${java.home}/../src.zip</exists> 135 </file> 136 </activation> 137 <dependencies> 138 <dependency> 139 <groupId>jdk</groupId> 140 <artifactId>srczip</artifactId> 141 <version>999</version> 142 <scope>system</scope> 143 <systemPath>${java.home}/../src.zip</systemPath> 144 <optional>true</optional> 145 </dependency> 146 </dependencies> 147 </profile> 148 </profiles> 149</project> 150