gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.52k stars 375 forks source link

Eclipse plugin web app project should be an Eclipse dynamic web app project and should copy referenced jars to web-inf/lib folder. #3811

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 3810


Found in GWT Release:1.6.4

Encountered on OS / Browser: Windows

Detailed description:
In web app projects in Eclipse or Netbeans, you could define referenced
jars and those referenced jars would be copied to the WEB-INF/lib folder.

However, in a google web app project, you have to do the same thing twice.
Define referenced jars in the build path for the benefit of the ide
compiler and then copy those jars yourself into the WEB-INF/lib folder for
the benefit of the run time.

Alternatively, GWT/GAE projects on eclipse should be created as an Eclipse
dynamic web app project.

Alternatively, the jetty server provided in the google plugin should be
listed as a server on Eclipse so that we could create an Eclipse dynamic
web app project and then use properties->google->gwt,gae to associate as a
gwt/gae project. For this option, please remember to have the gae project
creation process spontaneously create the app_engine.xml too.

Shortest code snippet which demonstrates issue:

Workaround if you have one:

Links to relevant GWT Developer Forum posts:

Reported by BlessedGeek on 2009-07-07 20:35:21

dankurka commented 9 years ago
There is a warning with a quick fix for copying the necessary jars into WEB-INF lib.
 The quick fix is available by 
clicking on a CTRL+1 in the problems view.

Up to now, we have not tried to do deeper integration with Eclipse's J2EE support.

Reported by mmendez+personal@google.com on 2009-07-08 15:21:37

dankurka commented 9 years ago
A bug for the discussion at
http://groups.google.com/group/google-appengine-java/browse_thread/thread/67cb7cdaefc8429f#
.

We have the quickfixes to copy JAR files to the war/WEB-INF/lib directory, but (1)
this can be undiscoverable, (2) conflict with desire to keep source control clean (as
discussed in the thread), and perhaps (3) cumbersome.

A suggestion to follow the MyEclipse model was proposed, which involves generating
the artifacts to be deployed on-the-fly.

Reported by jasonparekh on 2009-09-21 16:17:47

dankurka commented 9 years ago

Reported by scottb+legacy@google.com on 2009-12-15 22:07:53

dankurka commented 9 years ago
Starting from GPE 1.3, users are able to have a project with GPE and WTP playing 
nicely together.  Check out 
http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee .

Reported by jasonparekh@google.com on 2010-03-24 20:56:43