Hi GWT gurus,
I'm generating an Eclipse project using webAppCreator. The project is
created but the pom.xml does not contain the appropriate GWT project
nature, meaning the application can't be launched as Web Application
because the "Project does not use GWT or GAE". The usual sequence to
launch the app by right clicking the "project root -> Run As -> Web
Application" is not available since it's not a GWT project.
Found in GWT Release (e.g. 1.5.3, 1.6 RC):
2.1.0
Encountered on OS / Browser (e.g. WinXP, IE6-7, FF3):
Win7
Shortest code snippet which demonstrates issue (please indicate where
actual result differs from expected result):
Run "webAppCreator -maven -noant -out test
com.googlecode.easygwt.Test".
Then check the generated "pom.xml" and ".project" file. The former
lacks:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<additionalProjectnatures>
<projectnature>com.google.gwt.eclipse.core.gwtprojectnature</
projectnature>
<projectnature>org.eclipse.jdt.core.javaprojectnature</
projectnature>
<projectnature>org.eclipse.jem.workbench.JavaEMFprojectnature</
projectnature>
<projectnature>org.eclipse.wst.common.modulecore.ModuleCoreprojectnature</
projectnature>
<projectnature>org.eclipse.wst.common.project.facet.core.projectnature</
projectnature>
<projectnature>org.eclipse.wst.jsdt.core.jsprojectnature</
projectnature>
</additionalProjectnatures>
<additionalBuildcommands>
<buildCommand>com.google.gdt.eclipse.core.webAppProjectValidator</
buildCommand>
<buildCommand>com.google.gwt.eclipse.core.gwtProjectValidator</
buildCommand>
<buildCommand>org.eclipse.wst.jsdt.core.javascriptValidator</
buildCommand>
<buildCommand>org.eclipse.wst.common.project.facet.core.builder</
buildCommand>
<buildCommand>org.eclipse.wst.validation.validationbuilder</
buildCommand>
</additionalBuildcommands>
</configuration>
</plugin>
while the latter should have:
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
Workaround if you have one:
Right click on the project -> Google -> Web Toolkit Settings. Then
check "Use Google Web Toolkit"
Can this be fixed? Many thanks!
Regards,
Cheng
--
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.