I just take the following two action mentioned in the link
http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven - Under project properties, Google > Web Toolkit, the "Use Google
Web toolkit" box should be checked and "Use specific SDK" should point
to GWT in your local Maven repository
- Under project properties,
Google > Web Application, the "This project has a WAR directory" box
should be checked and "WAR directory" should be src/main/webapp
then the Run As > Web Application submenu is shown, no pom.xml is needed to modify.
Also, the link mention
Eclipse 3.7 (Indigo) or higher
but I am using helios (3.6) but still can show the run as > web application, so strange.
寄件人︰ Fred Bricon <fbricon@xxxxxxxxx>
收件人︰ Maven Integration for Eclipse users mailing list <m2e-users@xxxxxxxxxxx>
傳送日期︰ 2012年09月6日 (週四) 10:49 PM
主題︰ Re: [m2e-users] maven-eclipse-plugin additionalProjectnatures
The Google Eclipse Plugin already has a m2e/gwt configurator :
http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven
Regards,
Fred Bricon
On Thu, Sep 6, 2012 at 3:15 PM, Igor Fedorenko
<igor@xxxxxxxxxxxxxx> wrote:
maven-eclipspe-plugin is incompatible with m2e, m2e/gwt project
configuration is required to enable gwt nature (I don't know if such
configurator actually exists).
--
Regards,
Igor
On 12-09-06 6:43 AM, tong123123 wrote:
in my pom.xml, I use maven-eclipspe-plugin as follow:
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.7</version> <!-- Note 2.8 does not work with AspectJ
aspect path -->
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
<wtpversion>2.0</wtpversion>
<additionalBuildcommands>
<buildCommand>
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
</buildCommand>
</additionalBuildcommands>
<additionalProjectnatures>
<projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
</additionalProjectnatures>
</configuration>
</plugin>
I expect this willl cause eclipse recognize this project as GWT project
and so when right click the project, will show "run as web application",
but the result is not, as shown in attached figure (noRunAsWebApp.png).
How to make eclipse show the "run as web application" submenu?
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
--
"Have you tried turning it off and on again" - The IT Crowd
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/m2e-users