On Tuesday, May 15, 2012 9:33:18 AM UTC+2, tong123123 wrote:
>
> I do not know where to ask about maven gwt
>

For the gwt-maven-plugin, you can ask in the dedicated 
forum: https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users
 

> I follow the link
> http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html
> and run
>
>> mvn archetype:generate \ -DarchetypeRepository=repo1.maven.org \ 
>> -DarchetypeGroupId=org.codehaus.mojo \ 
>> -DarchetypeArtifactId=gwt-maven-plugin \ -DarchetypeVersion=2.4.0
>>
>
> it prompt for groupId, artifactId, version, packaging and MODULES, but the 
> MODULES only prompt once and 
> after enter all therse information, I open the pom.xml and cannot 
> found the section 
> <modules>
>
> why?
>
>
It asks for "module" (singular!), i.e. the GWT module name to generate. The 
value won't appear in the POM, but will be the name of several files: the 
*.launch files sibling to the pom.xml, the *.gwt.xml file in 
src/main/resources/${package}, the *.java file in 
src/main/java/${package}/client, and the *.html and *.css files in 
src/main/webapp. It will also appear in the src/main/webapp/WEB-INF/web.xml 
file.

If I were you, I'd rather use the webAppCreator tool from the GWT 
distribution (it unfortunately means you'd download the GWT SDK only for 
that tool, as you'll then download the artifacts from Maven): 
https://developers.google.com/web-toolkit/doc/latest/RefCommandLineTools#webAppCreator
 (the 
documentation unfortunately doesn't mention it can create a Maven project).

See also http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven 
(which 
discourages the use of the gwt-maven-plugin archetype).

When you're more comfortable with GWT and Maven (or if you're already 
comfortable with developing multi-module webapps with Maven), then you can 
try those archetypes: https://github.com/tbroyer/gwt-maven-archetypes

-- 
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/-/tc-ER8tf_6wJ.
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