Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gwt-maven-plugin with Eclipse Indigo

Tags:

eclipse

maven

gwt

I would just like to setup a new GWT project in Eclipse and use Maven for dealing with all the jar jungle. I used gwt-maven-plugin with this instructions, but I can't get the project to work in Eclipse.

What I've actually done:

  • Created a maven project using the archetype gwt in command line.
  • Imported the projet in eclipse using import > existing maven project
  • While doing that I had errors saying:
gwt-maven-plugin:2.3.0-1:generateAsync - "No marketplace entries found to handle"
gwt-maven-plugin:2.3.0-1:i18n - "No marketplace entries found to handle"
gwt-maven-plugin:2.3.0-1:exploded - "No marketplace entries found to handle"

These errors don't go away even if I ignore them on the import.

How can I make these projects working? Is the problem that I skipped the "process-resources" setting? (There is no such setting in the latest version of m2e.)

Should I even use gwt-maven-plugin? Is there any other way of making a GWT project to use Maven? Or – is there any other way to fight with the jar jungle? What does GWT guys use?

I use Eclipse Indigo with m2e plugin 1.0.0 and Google suite plugin version 2.3.3.

like image 949
hostnik Avatar asked Sep 14 '11 01:09

hostnik


1 Answers

Eventually I gave up Maven. As one other developer said "good ideas and bad code build communities faster" , I also remember my experience with Maven on all the projects: very promising on the beginning, but eventually you get to some problems and end up working more with configuring Maven than actually dealing with your own code.

I decided to manually copy needed .jar-s into /lib folder. I spent some time due to transitive dependencies, but LESS than dealing with Maven and now I have things under control. If sometime in the future working with libraries will become an overhead, I will consider using Ivy.

If someone wishes to stick with Maven, I lately found a very useful link by Google team: http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven
They recommend using their sample projects and not gwt-maven-plugin archetypes (due to issues). I agree. They also provide needed pom lifecycle changes for Eclipse Indigo.

like image 57
hostnik Avatar answered Sep 23 '22 14:09

hostnik