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>11.0.2</version> 9 </parent> 10 <artifactId>guava-gwt</artifactId> 11 <name>Guava GWT compatible libs</name> 12 <description> 13 Guava is a suite of core and expanded libraries that include 14 utility classes, google's collections, io classes, and much 15 much more. 16 17 This project includes GWT-friendly sources. 18 </description> 19 <dependencies> 20 <dependency> 21 <groupId>com.google.guava</groupId> 22 <artifactId>guava</artifactId> 23 <version>${project.version}</version> 24 </dependency> 25 <dependency> 26 <groupId>com.google.guava</groupId> 27 <artifactId>guava</artifactId> 28 <version>${project.version}</version> 29 <classifier>sources</classifier> 30 <scope>provided</scope> 31 </dependency> 32 <dependency> 33 <groupId>junit</groupId> 34 <artifactId>junit</artifactId> 35 <version>4.5</version> 36 <scope>test</scope> 37 </dependency> 38 <dependency> 39 <groupId>com.google.gwt</groupId> 40 <artifactId>gwt-dev</artifactId> 41 <version>2.2.0</version> 42 <type>jar</type> 43 <scope>provided</scope> 44 </dependency> 45 <dependency> 46 <groupId>com.google.gwt</groupId> 47 <artifactId>gwt-user</artifactId> 48 <version>2.2.0</version> 49 <type>jar</type> 50 <scope>provided</scope> 51 </dependency> 52 </dependencies> 53 <build> 54 <plugins> 55 <plugin> 56 <groupId>org.apache.maven.plugins</groupId> 57 <artifactId>maven-compiler-plugin</artifactId> 58 <version>2.3.2</version> 59 <configuration> 60 <source>1.5</source> 61 <target>1.5</target> 62 </configuration> 63 </plugin> 64 <plugin> 65 <groupId>org.apache.maven.plugins</groupId> 66 <artifactId>maven-dependency-plugin</artifactId> 67 <version>2.3</version> 68 <executions> 69 <execution> 70 <id>unpack-guava-sources</id> 71 <phase>generate-resources</phase> 72 <goals><goal>unpack-dependencies</goal></goals> 73 <configuration> 74 <includeArtifactIds>guava</includeArtifactIds> 75 <classifier>sources</classifier> 76 <overWrite>true</overWrite> 77 <excludeTransitive>true</excludeTransitive> 78 <includeScope>provided</includeScope> 79 <excludes>META-INF/MANIFEST.MF</excludes> 80 <outputDirectory>${project.build.directory}/guava-sources</outputDirectory> 81 <type>java-source</type> 82 <silent>false</silent> 83 </configuration> 84 </execution> 85 </executions> 86 </plugin> 87 <plugin> 88 <groupId>org.apache.maven.plugins</groupId> 89 <artifactId>maven-antrun-plugin</artifactId> 90 <version>1.6</version> 91 <executions> 92 <execution> 93 <phase>generate-resources</phase> 94 <goals><goal>run</goal></goals> 95 <configuration> 96 <target name="copy-gwt-resources"> 97 <echo message="Test"/> 98 <copy toDir="${project.build.directory}/guava-gwt-sources" 99 verbose="true"> 100 <fileset dir="${project.build.directory}/guava-sources"> 101 <and> 102 <contains text="@GwtCompatible"/> 103 <not><contains text="emulated = true"/></not> 104 </and> 105 </fileset> 106 </copy> 107 </target> 108 </configuration> 109 </execution> 110 </executions> 111 </plugin> 112 </plugins> 113 <sourceDirectory>src</sourceDirectory> 114 <testSourceDirectory>disabled</testSourceDirectory> 115 <resources> 116 <resource> 117 <directory>src</directory> 118 </resource> 119 <resource> 120 <directory>src-super</directory> 121 </resource> 122 <resource> 123 <directory>${project.build.directory}/guava-gwt-sources</directory> 124 </resource> 125 </resources> 126 </build> 127 </project> 128