如何使用 Maven 运行 Ext GWT (GXT) 应用程序
我正在尝试制作一个带有 Maven 支持的 GXT 3.0 启动应用程序。我已经使用 mvn gwt:compile gwt:run
命令成功编译并运行了本机 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 依赖项中项目的 Java 构建路径查看,我可以看到 GXT jar 尚未下载。
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
command
Howeven, 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您想要快照,请确保您也拥有它的存储库标签,无论您从何处获取该构建。否则请使用最新版本
3.0.0-beta3
。如果您正在构建自己的本地副本,或部署到内部存储库,那么 3.0.0-SNAPSHOT 应该可以工作 - 确保可以在您的存储库中找到该 jar,并且您没有离线运行。
If you want the snapshot, make sure you have the repository tags for it as well, for wherever you are getting that build from. Otherwise use the latest release,
3.0.0-beta3
.If you are building your own local copies, or deploying to an internal repo, then 3.0.0-SNAPSHOT should work - make sure the jar can be found in your repo, and that you aren't running as offline.
使用这些依赖项:
GXT 不再需要
uibinder-bridge
根据 Sencha 论坛。所有 GXT uibinder 功能均已合并到 GWT 2.5.0 版本中。
Use these dependencies:
GXT does not require
uibinder-bridge
anymore according to Sencha forum.All GXT uibinder features were incorporated into GWT 2.5.0 release.
GXT 3.0.1 位于 Maven 中央
GXT 3.0.1 is on maven central