Hi,

in order to convert your project to maven, you need to apply the Maven folder structure:

src/main/java -> java sources
src/main/resources -> resources: .properties files, .xml files, ...
src/test/java -> test java sources
src/test/resources -> test resources

Then you need to create your own pom.xml. The pom.xml tells Maven about your project: what dependencies (jars) it has, the name of the project, the authors and then also how to build the project.

Take a look at that pom:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/pom.xml

You need to adjust the properties to your own settings. Most importantly are the project information in the header and the properties of the gwt-maven-plugin. If you dont use RequestFactory you can remove the build plugins maven-processor-plugin and build-helper-maven-plugin and some dependencies.

The other option you have, is to use a Maven archetype, which is a project template. Using an archetype creates a new project. So you would need to copy/paste your existing files over.

Regards,
Stefan

Am 15.05.2012 18:31, schrieb tong123123:
Thanks for reply.

As I am new to maven, what I first need to understand is the sample project Mobile Web app sample <http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/> DynaTable RequestFactory sample <http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/>
?

my current non-maven gwt application is web application (not mobile application), using gwt-rpc (not requestFactory).
is the above 2 sample project relevant to me?
there is no step by step guide for migrate a non-maven gwt application to maven gwt application?

Sorry as I need to migrate a non-maven gwt application to maven gwt application in a very short period, I have no any idea now.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DVkLEcqw1gMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to