I have not been able to make the gwt:eclipse create a Launch that will work with the Plugin (the arguments tab is empty). So I am wondering how compatible it is with the Google Plugin:
- Will I be able to use the GWT Designer?
- Will I be able to run in Hosted Mode
- Will I be able to run GWTTests?
The steps I followed are:
- Use the Archetype to create Maven Project
- Import the project
- Go to the project properties and enable the Web Toolkit from the Google folder
- Copy my *.gwt.xml file to src/main/java
- run gwt:eclpse to create a Launch file (Which does not show in Run As by the way)
In the end it seems that I have to create a Run Configuration by hand. So how compatible are these 2 tools?
Thanks,
Each version of the GWT maven plugin is linked to a GWT version.
When you use GWT maven plugin, you need to check that the version used by the plugin is the same of your project and the same of the Google Eclipse plugin (configured per project).
The two plugins seem to be compatible (I use both without problems).
What I've done to create the project :
- create a maven project using the archetype gwt.
- import the projet in eclipse using import > existing maven project
- make your project a GWT project (project properties and check "enable GWT").
- run as web application (gwt) via the google eclipse plugin and not maven gwt:eclipse.
Related
I'm installing the plugin following these istruction http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html
The installation appears to be successful (if i go on the installed plugins I can see GWT Eclipse plugin 3.0.0) , but when I have to create a new web application I don't find the button for create it. I tried to search the button in "other" too.
Eclipse version: 4.22.0
The eclipse plugin is not fully maintained right now, the recommended way for creating new GWT projects is to use a multi module archetype that separate the client from the server, there is already a good archetype to do that you can find it here tbroyer gwt archetype and follow the instructions in the readme file to check how you can run the application.
Hello friends I have not so much Idea about maven build tool. I just download and install it in my system as I read maven is a build tool and work perfectly with transitive dependency. this is the basic reason to use it
I also configure mavan plugin in Eclipse.
so what is the proper Gwt maven archetype in eclipse and I read so many command in tutorials like maven:gwt run but I dont to where is this command exist in eclipse
I am very new in maven so please help me like a beginner
This is a common approach to get support of maven in existing GWT-Project
Make a gwt project by using the gwt plugin in Eclipse. Now you have
an Eclipse gwt project.
Select the project in Project Explorer , right-click it, then choose
Configure . Then select Convert to Maven Project . Now you get a
gwt-maven project.
Now add necessary dependencies to pom.xml .
if you want to create a gwt maven project directly you need to choose gwt archetype if not exist you can add this have a look in
this video
You should:
Download the gwt plugin in Eclipse and create a gwt project.
In Eclipse select the project, right-click on it, then choose Configure. Then select Convert to Maven Project.
Now you get a gwt-maven project.
I migrated a GAE project to a Maven project with the official way (https://developers.google.com/appengine/docs/java/tools/maven) but I don't want to use Maven to deploy/use devserver.
When I'm using the GAE Eclipse plugin I get an error:
Could not locate /path/to/project/target/WEB-INF/appengine-web.xml
Is it possible to use the GAE eclipse plugin or must I use Maven for deploying/local server?
I found the current process to do this a bit tricky, but it is possible. And it works pretty well after fiddling with it... I've been happy to have Maven manage the dependencies and I've found myself using it to test/deploy too. The key to getting it to work can be found in the GWT docs: In particular, you need to use a "dynamic web project" in Eclipse, rather than the normal (to me) GAE project.
Create the Eclipse Dynamic Web Project as in the link above, including changing the source folders to the proper maven-like location, and changing the web module location to the maven location.
Copy your source files in the right places.
Add the pom.xml file to the directory. At this point, you should be able to go to the command-line and run mvn appengine:devserver
Back in Eclipse, go to the project properties and turn on Google -> App Engine: Use GAE, and use HRD.
To be able to use m2eclipse to manage Maven dependencies and take Maven actions in Eclipse, you need to convert the project to a Maven project, as per this StackOverflow question
You might need to shutdown Eclipse, rebuild via Maven, restart/refresh Eclipse. At this point, you should be able to build/debug/deploy via Eclipse or via Maven!
I'm creating GAE projects and I would like to use Maven as build tool. I have found project http://www.kindleit.net/maven_gae_plugin/ that provides ability to use GAE with Maven, but I didn't understand how I can create a new project with this configuration?
First of all you have to have m2eclipse plugin installed to effectively use Maven in Eclipse. Once you have it:
Create a new Maven project with File->New->Project...
Make sure "Create simple project.." checkbox is not checked
Select appropriate archetype from kindleit
Give your project an id and a group
After that it will be generated with proper structure and dependecies
I just started a GWT project with environment:
Eclipse Helios
google plugin for Eclipse 3.6
maven2 plugin for eclipse
Gwt designer for eclipse 3.6
The project is created by gwt-maven-plugin. The project can run in dev mode. But GWT Designer doesn't work for client GUI class. I removed Maven dependencies for GWT and directly import Eclipse GWT SDK, GWT Designer starts working for client GUI class. But it still doesn't work for UiBuilder template file.
The error message is :
UIBinder template should be in client package.
You are attempting to use UiBinder for /hsp-web/src/main/java/com/hs/hspweb/client/ui/UserListViewImpl.ui.xml, however it is not in GWT client package.
Go to "Java build path" in project properties, click on
"YourProjectName/src/main/resources" -> "Excluded: **"
entry and press "Remove" button. It should change to "Excluded: (None)"
Then, you will be able to open GWT designer.
I found the solution here.
http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html
A restriction of this plugin is that it will search for gwt modules and host pages only in the first classpath source folder. Using a Maven / Eclipse integration like m2eclipse, this one will be your sourceDirectory (src/main/java). You'll have to move your gwt.xml files in this folder, instead of the standard Maven resource directory. See Google Eclipse Plugin issue #1597.