2012-02-22 90 views
0

我正在嘗試使用Maven支持來創建GXT 3.0啓動應用程序。我已經成功地編譯和mvn gwt:compile gwt:run命令如何使用Maven運行Ext GWT(GXT)應用程序

Howeven,運行原生GWT應用程序時,我添加了這些依賴條件:

<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> 

,並在gwt.xml(模塊)的文件中添加了這個:

<inherits name="com.sencha.gxt.ui.GXT" /> 

我得到這個錯誤(運行相同的MVN命令如上):

GWT module com.sencha.gxt.ui.GXT not found 

Maven Dependencies項目的Java構建路徑看,我可以看到GXT jar沒有被下載。

Full pom.xml here.

+0

順便說一句,對於GXT版本,我在POM中有這個: 3.0.0-SNAPSHOT xybrek 2012-02-22 05:09:17

回答

1

如果你想快照,請確保你有這方面的資源庫標籤爲好,對於無論你獲得的是從建設。否則使用最新版本,3.0.0-beta3

如果您正在構建自己的本地副本或部署到內部倉庫,那麼3.0.0-SNAPSHOT應該可以工作 - 確保該倉庫可以在您的倉庫中找到,並且您沒有以離線方式運行。

+0

另外,uibinder-bridge應該與您的GWT版本2.4.0匹配。在2.4之後,那裏的代碼存在於GWT主幹中,所以不再需要jar。 – 2012-02-29 15:17:46

0

GXT 3.0.1是行家中央

<dependency> 
    <groupId>com.sencha.gxt</groupId> 
    <artifactId>gxt</artifactId> 
    <version>3.0.1</version> 
</dependency> 
1

使用這些依賴關係:

<dependency> 
    <groupId>com.google.gwt</groupId> 
    <artifactId>gwt-user</artifactId> 
    <version>2.5.0</version> 
</dependency> 
<dependency> 
    <groupId>com.google.gwt</groupId> 
    <artifactId>gwt-servlet</artifactId> 
    <version>2.5.0</version> 
</dependency> 
<dependency> 
    <groupId>com.sencha.gxt</groupId> 
    <artifactId>gxt</artifactId> 
    <version>3.0.1</version> 
</dependency> 

GXT不需要uibinder-bridgeaccording to Sencha forum。 所有的GXT uibinder功能都被整合到了GWT 2.5.0版本中。

相關問題