Wednesday, July 28, 2010

Re: gwt 2.x maven linux support

Hi,

You need to use version 1.2 of gwt-maven plugin. The 1.1 does not
support GWT 2.0 due to the replacement of Hosted Mode by the Dev Mode.
The Hosted Mode is "specific" for each platform and so gwt-maven
plugin need to download a jar specific to linux. But with the Dev
Mode, the same code (the same jar) is used for all platform.

Olivier


On 28 juil, 13:55, Ovidiu Drumia <ovidiu.dru...@gmail.com> wrote:
> Hey,
>
> I've started using gwt. I'm currently trying to integrate my new
> project within a maven module suite, using the codehaus gwt-maven
> plugin. My pom.xml file contains gwt dependencies. All is well until I
> try to go beyond the 1.x gwt version. The pom.xml contains the
> following code:
> ...
>     <properties>
>                <gwt-version>x.x.x</gwt-version>
>      </properties>
> ...
>        <dependencies>
> ...
>                <dependency>
>                         <groupId>com.google.gwt</groupId>
>                         <artifactId>gwt-servlet</artifactId>
>                         <version>${gwt-version}</version>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>com.google.gwt</groupId>
>                         <artifactId>gwt-user</artifactId>
>                         <version>${gwt-version}</version>
>                         <scope>provided</scope>
>                 </dependency>
>         </dependencies>
>         <build>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.codehaus.mojo</groupId>
>                                 <artifactId>gwt-maven-plugin</artifactId>
>                                 <version>1.1</version>
>                                 <executions>
>                                         <execution>
>                                                 <goals>
>                                                         <goal>clean</goal>
>                                                         <goal>compile</goal>
>                                                         <goal>eclipse</goal>
>                                                 </goals>
>                                         </execution>
>                                 </executions>
>                         </plugin>
>                 </plugins>
>         </build>
>
> Now until after version 1.7.1 the project compiles. When I try to go
> beyond it, it first tells me to manually download the gwt-
> dev-2.0.4.jar and then install it. I've done that, but afterwards it
> tells me to do the same thing with gwt-dev-2.0.4-linux-lib.zip, but
> the maven2 repo does not contain such a file.
> Will the gwt team publish the remaining needed libraries onto the mvn
> repo?
> Is there any way to use the gwt-maven-plugin and gwt 2.0.4?
> Should I stick to gwt 1.7.1 until the gwt team provides the needed
> linux libraries?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment