如何创建 Maven Gwt 项目?

how can I create maven Gwt project?

你好朋友我对maven构建工具没有太多想法。我只是在我的系统中下载并安装它,因为我读到 maven 是一个构建工具并且可以完美地与传递依赖一起工作。这是使用它的基本原因

我也在Eclipse中配置mavan插件

那么 eclipse 中正确的 Gwt maven 原型是什么,我在 maven:gwt 运行 等教程中阅读了很多命令,但我不知道这个命令在 eclipse 中存在于何处

我是 maven 的新手所以请像初学者一样帮助我

你应该:

  1. 在Eclipse中下载gwt插件并创建一个gwt项目。
  2. 在 Eclipse select 项目中,右击它,然后选择 Configure。然后selectConvert to Maven Project

现在你得到了一个gwt-maven项目。

这是在现有 GWT-Project

中获得 maven 支持的常用方法
  1. Make a gwt project by using the gwt plugin in Eclipse. Now you have an Eclipse gwt project.

  2. Select the project in Project Explorer , right-click it, then choose Configure . Then select Convert to Maven Project . Now you get a gwt-maven project.

  3. Now add necessary dependencies to pom.xml .

如果你想直接创建一个gwt maven项目你需要选择gwt archetype如果不存在你可以添加这个看看 this video