Open GoogleCodeExporter opened 8 years ago
I'm not using maven any more, but if you look at the docs at
http://mojo.codehaus.org/gwt-maven-plugin/ you might find out how to keep the
plugin enabled.
Go ahead and send me the new pom.xml without or without the mavenplugin and I
can stick it in there for others' benefit.
Original comment by dob...@gmail.com
on 22 Jun 2010 at 6:17
Here is a pom without gwt:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<!--
GWT-Maven example POM without google.webtoolkit.home SET (GWT as deps)
-->
<modelVersion>4.0.0</modelVersion>
<groupId>com.freshbooks</groupId>
<artifactId>freshbooksApiClient</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>freshbooksApiClient</name>
<description>Client library to access the freshbooks API from java programs</description>
<properties>
<target.dir>.target</target.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<directory>${target.dir}</directory>
<resources>
<resource>
<directory>src/main/java</directory>
<excludes><exclude>**/.svn</exclude></excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<excludes><exclude>**/.svn</exclude></excludes>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/java</directory>
<excludes><exclude>**/.svn</exclude></excludes>
</testResource>
<testResource>
<directory>src/test/resources</directory>
<excludes><exclude>**/.svn</exclude></excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- GWT dependencies (from maven "central" repo) -->
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<!-- Does not work with versions > 1.3 right now, need to figure that out -->
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original comment by nafe...@gmail.com
on 18 Jul 2011 at 9:56
This version of the pom.xml worked for me as well. Hope this get merged into
the trunk. Thanks!
Original comment by amarques...@gmail.com
on 21 Sep 2011 at 2:44
Original issue reported on code.google.com by
cod...@gmail.com
on 16 Sep 2009 at 5:30