views:

187

answers:

2

Hello,

I've been trying to get the gwt-maven-plugin to work for me. Hopefully someone can help me.

I'm using gwt-maven-plugin 1.2 and trying to get it to work with gwt 2.1.0.M3. We have a nexus repo at work and I've put the latest gwt jars there. The plugin fails when trying to download the gwt-dev jar.

The gwt-dev jar is located at 2.1.0.M3/gwt-dev-2.1.0.M3.jar
The plugin tries to download 2.1.0.M3/gwt-dev-2.1.0.M3-linux.jar.

I don't have a dependency anywhere on my pom for gwt-dev, the plugin takes care of that. How can I stop it from appending "-linux" to it? I'm aware that I could just change the name of the jar in my repo or set it up manually on my local machine, but I want to figure out how to get this working on nexus because we have several developers working on this at the same time.

Thanks!

A: 

You should upgrade your gwt-maven-plugin to version 1.2, which has some support for GWT-2.0.
As of GWT-2.0, the gwt-dev jars are no longer distributed separately per platform - a fact which the older versions of the gwt-maven-plugin are not aware.

crowne
+1  A: 

I am having the same problem. Here's what worked for me, which I gleaned from this sample pom: http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/pom.xml

Add this to your plugin repos:

<pluginRepositories>
    <pluginRepository>
        <id>gwt-plugin-repo</id>
        <url>http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven&lt;/url&gt;
        <name>Google Web Toolkit Plugin Repository</name>
    </pluginRepository>
</pluginRepositories>

Set your gwt-maven-plugin to 1.3.1.google

<plugins>
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>1.3.1.google</version>
Bohemian