]> source.dussan.org Git - gwtquery.git/commitdiff
Produce a gwt artifact with different classifier for gwt-2.2.0. Fixes issue#66
authorManolo Carrasco <manolo@apache.org>
Mon, 14 Feb 2011 17:51:39 +0000 (17:51 +0000)
committerManolo Carrasco <manolo@apache.org>
Mon, 14 Feb 2011 17:51:39 +0000 (17:51 +0000)
gwtquery-core-2.2.0/pom.xml [new file with mode: 0644]
pom.xml

diff --git a/gwtquery-core-2.2.0/pom.xml b/gwtquery-core-2.2.0/pom.xml
new file mode 100644 (file)
index 0000000..b7c890f
--- /dev/null
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>com.googlecode.gwtquery</groupId>
+    <artifactId>gwtquery-project</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+
+  <description>Generates an artifact compiled with a concrete gwt version specified in the artifactId</description>
+  <artifactId>2.2.0</artifactId>
+  <packaging>jar</packaging>
+  <name>Gwt Query Core API for gwt-${artifactId}</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>com.googlecode.gwtquery</groupId>
+      <artifactId>gwtquery</artifactId>
+      <version>${version}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.google.gwt</groupId>
+      <artifactId>gwt-user</artifactId>
+      <version>${artifactId}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.google.gwt</groupId>
+      <artifactId>gwt-dev</artifactId>
+      <version>${artifactId}</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <finalName>gwtquery-${version}-${artifactId}</finalName>
+    <plugins>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals><goal>unpack-dependencies</goal></goals>
+            <phase>generate-resources</phase>
+            <configuration>
+              <includeGroupIds>com.googlecode.gwtquery,com.googlecode.gwtquery.plugins</includeGroupIds>
+              <includeArtifactIds>gwtquery</includeArtifactIds>
+              <excludeTransitive>true</excludeTransitive>
+              <includes>**/*.java,**/*.xml,**/*.html,**/*.css,**/*.jpg,**/*.png,**/*.gif</includes>
+              <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+       <plugin>
+         <groupId>org.codehaus.mojo</groupId>
+         <artifactId>build-helper-maven-plugin</artifactId>
+         <executions>
+           <execution>
+             <id>add-sources</id>
+           <phase>generate-sources</phase>
+           <goals>
+             <goal>add-source</goal>
+           </goals>
+           <configuration>
+             <sources>
+               <source>${project.build.directory}/generated-resources</source>
+             </sources>
+           </configuration>
+         </execution>
+        </executions>
+      </plugin>
+    </plugins>
+    <resources>
+      <resource>
+        <directory>${project.build.directory}/generated-resources/</directory>
+      </resource>
+    </resources>
+  </build>
+</project>
diff --git a/pom.xml b/pom.xml
index d7032e12d22d817499f142f8da48bd1baf9cf3a7..7af88b3e9e8ac98e4b78b087ae4cfedaa4650e68 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -60,6 +60,7 @@
 
     <modules>
         <module>gwtquery-core</module>
+        <module>gwtquery-core-2.2.0</module>
         <module>samples</module>
         <!-- <module>devtest</module> -->
     </modules>
     </repositories>
 
     <properties>
-        <gwtversion>2.2.0</gwtversion>
+        <gwtversion>2.1.1</gwtversion>
         <gwt.loglevel>INFO</gwt.loglevel>
         <gwt.outputstyle>OBF</gwt.outputstyle>
         <gwt.modulesuffix></gwt.modulesuffix>