SIDEBAR
»
S
I
D
E
B
A
R
«
Jax 2013 – GWT lessons learned
Apr 25th, 2013 by P.G.Taboada

It is quite a long time since my last post. Today I talked at the JAX 2013 about GWT architectures and lessons learned.

I have uploaded my slides to slideshare.net:

GPE, eclipse and maven never ending story. Done.
Dec 19th, 2012 by P.G.Taboada

I don’t know how many times I had to start over and over again, searching for the latest versions, searching for “how to make” the Google Eclipse Plugin, eclipse and maven work together.

The problem is: too many tools that don’t seem to like each other fighting over project layout and classpath. Java EE packaging specs and GWT specialities coming from DevMode don’t really make things easier. If you were not a pro in all of this, you ended up with a mess. I have seen it too often.

Since m2e integration things started getting better. And finally, using recent versions from the following official update sites, it started working flawlessly. Even the DevMode/ classpath issue that made us patch the Jetty launcher past year is solved!

I’ll try to keep this posting here up-to-date, so you won’t have to read through all the docs, tips, tricks comments from here and here again and again.

What you need:

  • m2e – maven integration for eclipse

    http://download.eclipse.org/technology/m2e/releases

  • m2e-wtp – maven Integration for WTP

    http://download.eclipse.org/m2e-wtp/releases/

I am using the latest stable releases from eclipse.org. Well, not always, I am going as stable as possible: the actual wtp integration is still in incubation… but works…

Talking numbers, this are the version numbers I used here:

  • m2e – Maven Integration for Eclipse 1.2.0.20120903-1050
  • m2e-wtp – Maven Integration for WTP (Incubation) 0.16.0.20120914-0945
  • m2e connector for mavenarchiver pom properties 0.15.0.201207090125-signed-201209140800

I have installed a few m2e connectors I required for other non GWT projects, I think they are not needed for a GWT project. Just for the curious:

M2E connectors are a bridge between Maven and Eclipse. When a maven plugin is bound to a lifecycle phase like generate-sources, or process-sources it becomes a part of Eclipse build. (source)

Don’t use the archetype. And if you do, remove the maven-war-plugin plugin. I am using the copyWebapp configuration option in the gwt-maven-plugin to copy the

stuff into the folder used by the DevMode and build system located at 

.

By the way, defaults work fine now, there is no need to setup/ fix the path configs for the plugin anymore. If you use M2E to update the project configuration things will work.

If you are sure your config is right, and you are absolutely sure you have at least the versions mentioned above, try killing your eclipse config with

This will leave you with a completely missconfigured project in eclipse. Let m2e update the project again. Sometimes I get the error that m2e did fail setting up the project description. Ignore it, do it again.

 

 

Presentation slides from the W-JAX 2012
Nov 6th, 2012 by P.G.Taboada

Session: GWT – Building a better web…

Talking about GWT is always fun. Thanks to all participants for the great feedback.

Google I/O 2012 – The History and Future of Google Web Toolkit
Jul 11th, 2012 by P.G.Taboada

The video to the GWT session from the Google IO 2012 is finally online!

Using guava with GWT
Jul 11th, 2012 by P.G.Taboada

Guava is a very useful library, and it is quite easy to use it (partially) within the GWT client code.

First, add the guava.jar and the guava-gwt.jar libs to your project. If you are using maven, just add the following dependency to you pom.xml:

For Ivy or Gradle, just have a loot at here.

Once the libs are in your classpath, you can inherit the required modules in your GWT module:

or, as in my case, just add

which does all of the above…

I am not going into all the guava goodies here, but…

 

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »  Style:Ahren Ahimsa