<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Maven Configurator Plugin for GWT
</h3>
<span style="margin-bottom: 10px;">
    modified by <a href="https://community.jboss.org/people/dgolovin">Denis Golovin</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/docs/DOC-18094">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>This plugin is created to fix issues:</p><ul><li><a class="jive-link-external-small" href="https://issues.jboss.org/browse/JBIDE-11244">JBIDE-11244 </a>Auto-discover all the modules and add them to the configuration on GWT project import</li><li><a class="jive-link-external-small" href="https://issues.jboss.org/browse/JBIDE-11224">JBIDE-11224</a> Ensure GWT tooling and m2e-wtp are configured for same output directory</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>To see it in action download <a class="jive-link-external-small" href="http://Eclipse IDE for Java EE Developers, 211 MB">Eclipse IDE for Java EE Developers (211 MB</a>). 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</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/18467/GWTInstallMavenPLugins.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/18467/GWTInstallMavenPLugins.png </span></a></p><p>Then install Google plugins from JBoss Central Software/Update Tab (see below)</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/18468/GooglePluginsInstall.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/18468/GooglePluginsInstall.png </span></a></p><p>After restart WGT Web Project created form JBoss Central page could be build as google project trough Google-&gt;Compile... or Run As-&gt;Mave Build... and deployed to JBoss AS 7.1 Server without additional configuration.</p><p>GWT configurator does required configuration when maven project is being created:</p><ul><li>Entry Point Modules found in project are added to Google-&gt;Web Toolkit Project Preferences</li></ul><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/18469/GoogleWebToolkitPreferences.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/18469/GoogleWebToolkitPreferences.png </span></a></p><ul><li>Google GWT compiler output path is configured to /gwt-kitchensink/src/main/webapp which is the same for maven based build</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This configuration allows project to be build by Google-&gt;GWT Compile... action </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/18470/GoogleGWTCompile.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/18470/GoogleGWTCompile.png </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>or Run As-&gt;Maven Build... Then project could be deployed to Application Server and should work.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>GWT Configurator is triggered if it is enabled in JBoss Tools-&gt;JBoss Maven Integration</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/18471/GWTConfiguratorPreferences.png"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/18471/GWTConfiguratorPreferences.png </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and maven project declares orrg.codehaus.mojo:gwt-maven-plugin </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h1>Current limitations</h1><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Configurations like</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;plugin&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;groupId&gt;</span>org.codehaus.mojo<span class="jive-xml-tag">&lt;/groupId&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;artifactId&gt;</span>gwt-maven-plugin<span class="jive-xml-tag">&lt;/artifactId&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;version&gt;</span>${version.org.codehaus.mojo.gwt.maven.plugin}<span class="jive-xml-tag">&lt;/version&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;configuration&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;inplace&gt;</span>true<span class="jive-xml-tag">&lt;/inplace&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;logLevel&gt;</span>INFO<span class="jive-xml-tag">&lt;/logLevel&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;extraJvmArgs&gt;</span>-Xmx512m<span class="jive-xml-tag">&lt;/extraJvmArgs&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;noServer&gt;</span>true<span class="jive-xml-tag">&lt;/noServer&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;runTarget&gt;</span>http://localhost:8080/gwt-kitchensink/KitchenSink.html<span class="jive-xml-tag">&lt;/runTarget&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>org.jboss.tools.gwt.kitchensink.Kitchensink<span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/configuration&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>or</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;plugin&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;groupId&gt;</span>org.codehaus.mojo<span class="jive-xml-tag">&lt;/groupId&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;artifactId&gt;</span>gwt-maven-plugin<span class="jive-xml-tag">&lt;/artifactId&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;version&gt;</span>${version.org.codehaus.mojo.gwt.maven.plugin}<span class="jive-xml-tag">&lt;/version&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;configuration&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;inplace&gt;</span>true<span class="jive-xml-tag">&lt;/inplace&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;logLevel&gt;</span>INFO<span class="jive-xml-tag">&lt;/logLevel&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;extraJvmArgs&gt;</span>-Xmx512m<span class="jive-xml-tag">&lt;/extraJvmArgs&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;noServer&gt;</span>true<span class="jive-xml-tag">&lt;/noServer&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;runTarget&gt;</span>http://localhost:8080/gwt-kitchensink/KitchenSink.html<span class="jive-xml-tag">&lt;/runTarget&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;modules&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>org.jboss.tools.gwt.kitchensink.Kitchensink0<span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module&gt;</span>org.jboss.tools.gwt.kitchensink.Kitchensink1<span class="jive-xml-tag">&lt;/module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/configuration&gt;</span>

</code></pre><p>are not supported yet and is work in progress. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Do not now how to deal with pom files with errors.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Current implementation searches for all modules and adds them as Entry Point Modules.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="https://community.jboss.org/docs/DOC-18094">going to Community</a></p>

        <p style="margin: 0;">Create a new document in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>