[jboss-user] [JBoss Tools] - Maven Configurator Plugin for GWT
Denis Golovin
do-not-reply at jboss.com
Wed Apr 25 06:21:21 EDT 2012
Denis Golovin [https://community.jboss.org/people/dgolovin] modified the document:
"Maven Configurator Plugin for GWT"
To view the document, visit: https://community.jboss.org/docs/DOC-18094
--------------------------------------------------------------
This plugin is created to fix issues:
* https://issues.jboss.org/browse/JBIDE-11244 JBIDE-11244 Auto-discover all the modules and add them to the configuration on GWT project import
* https://issues.jboss.org/browse/JBIDE-11224 JBIDE-11224 Ensure GWT tooling and m2e-wtp are configured for same output directory
To see it in action download http://Eclipse IDE for Java EE Developers, 211 MB Eclipse IDE for Java EE Developers (211 MB). Install from JBoss Tools nightly update site all plugins from 'Abriged Jboss Tools 3.3' and 'JBoss Maven Support' categories as it is shown below
https://community.jboss.org/servlet/JiveServlet/showImage/18467/GWTInstallMavenPLugins.png https://community.jboss.org/servlet/JiveServlet/downloadImage/18467/GWTInstallMavenPLugins.png
Then install Google plugins from JBoss Central Software/Update Tab (see below)
https://community.jboss.org/servlet/JiveServlet/showImage/18468/GooglePluginsInstall.png https://community.jboss.org/servlet/JiveServlet/downloadImage/18468/GooglePluginsInstall.png
After restart WGT Web Project created form JBoss Central page could be build as google project trough Google->Compile... or Run As->Mave Build... and deployed to JBoss AS 7.1 Server without additional configuration.
GWT configurator does required configuration when maven project is being created:
* Entry Point Modules found in project are added to Google->Web Toolkit Project Preferences
https://community.jboss.org/servlet/JiveServlet/showImage/18469/GoogleWebToolkitPreferences.png https://community.jboss.org/servlet/JiveServlet/downloadImage/18469/GoogleWebToolkitPreferences.png
* Google GWT compiler output path is configured to /gwt-kitchensink/src/main/webapp which is the same for maven based build
This configuration allows project to be build by Google->GWT Compile... action
https://community.jboss.org/servlet/JiveServlet/showImage/18470/GoogleGWTCompile.png https://community.jboss.org/servlet/JiveServlet/downloadImage/18470/GoogleGWTCompile.png
or Run As->Maven Build... Then project could be deployed to Application Server and should work.
GWT Configurator is triggered if it is enabled in JBoss Tools->JBoss Maven Integration
https://community.jboss.org/servlet/JiveServlet/showImage/18471/GWTConfiguratorPreferences.png https://community.jboss.org/servlet/JiveServlet/downloadImage/18471/GWTConfiguratorPreferences.png
and maven project declares orrg.codehaus.mojo:gwt-maven-plugin
h1. Current limitations
Configurations like
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${version.org.codehaus.mojo.gwt.maven.plugin}</version>
<configuration>
<inplace>true</inplace>
<logLevel>INFO</logLevel>
<extraJvmArgs>-Xmx512m</extraJvmArgs>
<noServer>true</noServer>
<runTarget>http://localhost:8080/gwt-kitchensink/KitchenSink.html</runTarget>
<module>org.jboss.tools.gwt.kitchensink.Kitchensink</module>
</configuration>
or
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${version.org.codehaus.mojo.gwt.maven.plugin}</version>
<configuration>
<inplace>true</inplace>
<logLevel>INFO</logLevel>
<extraJvmArgs>-Xmx512m</extraJvmArgs>
<noServer>true</noServer>
<runTarget>http://localhost:8080/gwt-kitchensink/KitchenSink.html</runTarget>
<modules>
<module>org.jboss.tools.gwt.kitchensink.Kitchensink0</module>
<module>org.jboss.tools.gwt.kitchensink.Kitchensink1</module>
</configuration>
are not supported yet and is work in progress.
Do not now how to deal with pom files with errors.
Current implementation searches for all modules and adds them as Entry Point Modules.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18094]
Create a new document in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120425/11e228d4/attachment.html
More information about the jboss-user
mailing list