PDA

View Full Version : How to run a Ext GWT (GXT) application with Maven



xybrek
21 Feb 2012, 9:19 PM
I am trying to make a GXT 3.0 starting app with Maven support. I have successfully compiled and run the native GWT application with mvn gwt:compile gwt:run commandHoweven, when I added these dependecies:

<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt</artifactId>
<version>${gxt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt-uibinder</artifactId>
<version>${gxt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt-chart</artifactId>
<version>${gxt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>uibinder-bridge</artifactId>
<version>2.4.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>


and added this in the gwt.xml (module) file:

<inherits name="com.sencha.gxt.ui.GXT" />
I am getting this error (running the same mvn command as above):

GWT module com.sencha.gxt.ui.GXT not found
And looking from the Java build path of the project in the Maven Dependencies, I can see that the GXT jars have not been downloaded.

Full pom.xml here. (http://pastebin.com/Z7SsRX0y)

cimballi
22 Feb 2012, 5:26 AM
GXT jars are not available in the main maven repository, it means you have to install the jars in your local repo manually.