如何使用 Maven 运行 Ext GWT (GXT) 应用程序

发布于 2025-01-07 12:13:16 字数 1429 浏览 0 评论 0原文

我正在尝试制作一个带有 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 尚未下载。

完整的 pom.xml 位于此处。

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.

Full pom.xml here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

转瞬即逝 2025-01-14 12:13:16

如果您想要快照,请确保您也拥有它的存储库标签,无论您从何处获取该构建。否则请使用最新版本 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.

打小就很酷 2025-01-14 12:13:16

使用这些依赖项:

<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-bridge 根据 Sencha 论坛
所有 GXT uibinder 功能均已合并到 GWT 2.5.0 版本中。

Use these dependencies:

<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 does not require uibinder-bridge anymore according to Sencha forum.
All GXT uibinder features were incorporated into GWT 2.5.0 release.

清浅ˋ旧时光 2025-01-14 12:13:16

GXT 3.0.1 位于 Maven 中央

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

GXT 3.0.1 is on maven central

<dependency>
  <groupId>com.sencha.gxt</groupId>
  <artifactId>gxt</artifactId>
  <version>3.0.1</version>
</dependency>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文