Maven dependency for GWT 2.1 RC1 ?

113 views
Skip to first unread message

Gaurav Jain

unread,
Oct 18, 2010, 9:54:21 AM10/18/10
to Google Web Toolkit
Can anybody please tell the maven dependency for 2.1 rc1 and its
repository?

Thomas Broyer

unread,
Oct 18, 2010, 4:21:43 PM10/18/10
to Google Web Toolkit

On 18 oct, 15:54, Gaurav Jain <gauravma...@gmail.com> wrote:
> Can anybody please tell the maven dependency for 2.1 rc1 and its
> repository?

We're using (from memory)
<repository>
<id>gwt-repo</id>
<url>http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven</
url>
<name>Google Web Toolkit Repository</name>
</repository>
...
<pluginRepository>
<id>gwt-repo</id>
<url>http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven</
url>
<name>Google Web Toolkit Plugin Repository</name>
</pluginRepository>
...
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.1.0.RC1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.1.0.RC1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>2.1.0.RC1</version>
<scope>provided</scope>
</dependency>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.3.2.google</version>
<configuration>
...
Sorry, can't remember off hand what we really do have here. We're
running "mvn compile war:exploded -Dgwt.compiler.skip=true" to pre-
package the app without the gwt:compile step, and we run the DevMode
from Eclipse using the target/<webapp-exploded-war-output> as the
"war" directory
...
<gwtVersion>2.1.0.RC1</gwtVersion>
<runTarget>/index.html</runTarget>
<modules>
<module>${project.groupId}.MyApp</module>
</modules>
</configuration>
<executions>
<execution>
<id>gwtcompile</id>
<phase>prepare-package</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>

You can also use 2.1-SNAPSHOT from the sonatype google-snapshots
repository or google code 2.1.0.RC1 repository (in the GWT SVN repo,
same as above, just replace 2.1.0 with 2.1.0.RC1)

Gaurav Jain

unread,
Oct 19, 2010, 7:40:38 AM10/19/10
to Google Web Toolkit
Thanks for your reply Thomas,

I also used the same configuration as provided by you, but getting
strange problems:

.........
projectRoot\src\main\java\com\places\client\ClientFactory.java:[3,34]
pa
ckage com.google.gwt.event.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactory.java:[4,34]
pa
ckage com.google.gwt.place.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactory.java:[10,1]
ca
nnot find symbol
symbol : class EventBus
location: interface com.places.client.ClientFactory

projectRoot\src\main\java\com\places\client\ClientFactory.java:[11,1]
ca
nnot find symbol
symbol : class PlaceController
location: interface com.places.client.ClientFactory

projectRoot\src\main\java\com\places\client\ui\MyView.java:[3,34]
packag
e com.google.gwt.place.shared does not exist

projectRoot\src\main\java\com\places\client\ui\MyView.java:[4,36]
packag
e com.google.gwt.user.client.ui does not exist

projectRoot\src\main\java\com\places\client\ui\MyView.java:[6,32]
cannot
find symbol
symbol: class IsWidget
public interface MyView extends IsWidget

projectRoot\src\main\java\com\places\client\ui\MyView.java:[13,12]
canno
t find symbol
symbol : class Place
location: interface com.places.client.ui.MyView.Presenter

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[3,34
] package com.google.gwt.event.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[4,34
] package com.google.gwt.event.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[5,34
] package com.google.gwt.place.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[12,2
2] cannot find symbol
symbol : class PlaceController
location: class com.places.client.ClientFactoryImpl
.....................

Actually in Eclipse IDE, I am able to import and use all gwt classes,
but during mvn package or mvn jetty:run or gwt:run, it gives above
errors.

And in Intellij idea IDE, ide gives errors on classes itself, saying
that the GWT classes need some different module to be inherited in
Application.gwt.xml file.

For example for class com.google.gwt.core.GWT it says that inherit
module 'com.google.gwt.core.CompilerParameters'
and for class UIBinder it says to inherit
'com.google.gwt.uibinder.UiBinder', but even on inheriting these
modules, the error remains both in IDE and during mvn commands.

On Oct 19, 1:21 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 18 oct, 15:54, Gaurav Jain <gauravma...@gmail.com> wrote:
>
> > Can anybody please tell the maven dependency for 2.1rc1and its
> repository or google code 2.1.0.RC1repository (in the GWT SVN repo,
Reply all
Reply to author
Forward
0 new messages