Ubuntu: Build a GWT-Ext application from Maven

Source: Internet
Author: User
It is very easy to successfully build the gwtext application from maven in Ubuntu. Build a gwt framework with maven to generate a project file for eclipse for easy import, and then use eclipse for editing. Download extjs2.0.2 and upload the main file to the public/js/ext directory. Add the repository and dependency of gwtext to pom. xml, and add inherits, stylesheet, and

It is very easy to successfully build the gwtext application from maven in Ubuntu. Build a gwt framework with maven to generate a project file for eclipse for easy import, and then use eclipse for editing. Download extjs2.0.2 and upload the main file to the public/js/ext directory. Add the repository and dependency of gwtext to pom. xml. Add inherits, stylesheet and scripts to gwt. xml!

Run: Run pom. xml to get webcontent under target, add it to Tomcat 7 in eclipse, and run the server, you can open index.html to get the result. [6688 e-commerce website www.6688.cc]

Prerequisites: eclipse helios, tomcat7, and maven3.0. gwt uses 1.5.3 and extjs uses 2.0.2.

1, mvn archetype: generate, choose maven gwt archetype.
2, cd {$ artifactId}, mvn eclipse: eclipse
3. import project in eclipse.
3.1, download extjs2.0.2, copy adapter, resources and ext-all.js to public/js/ext folder.
3.2, add following items in pom. xml:


Gwtext

Http://www.gwt-ext.com/maven2/




Com. gwtext
Gwtext
2.0.5

3.3, add following items in gwt. xml:




3.4, then you can modify your $ {entryPoint}. java for testing:
Panel p = new Panel ();
P. setTitle ("main ");
RootPanel. get (). add (p );
Run pom. xml as maven package, war folder get generated in target, add it to your tomcat7 in eclipse, start tomcat7, run index.html on server, done!

References:
Http://gwt-ext.com/wiki/index.php? Title = Tutorial: Introduction_to_GWT-Ext_2.0 # Configuring_Your_Application
Add gwtext to gwt.
Http://code.google.com/p/gwt-ext/issues/detail? Id = 180
Add gwt to maven.
Note that the dynamic web module must be added to the project during the process. Otherwise, it cannot be added to tomcat.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.