将gwt项目转换成maven gwt项目 [英] Convert gwt project into maven gwt project
问题描述
我想将一个gwt项目转换为一个maven项目。我没有配置 - >转换为maven。这只是在我的项目中创建了pom.xml和target文件夹。该文件夹结构保持不变,因为maven项目结构是src-> main-> java。然后我想创建一个war文件,任何人都可以帮助我完成这项工作。
完全AUTOMagic解决方案。
Configure->转换为maven的步骤
1 )确定项目中使用的每个库jar和版本,并在maven pom中为其添加相应的依赖项部分。
$ b 2)在你的pom中创建一个构建部分,你可以指定任何文件夹结构(建议您更喜欢src / main / java)
3)为构建gwt编译添加相关插件部分。使用gwt示例项目作为模板。
4)文件夹之间有很多复制/粘贴(如果你迁移到maven的src / main / java)。使用Eclipse重构功能可以避免手动访问每个文件。
将GWT示例项目方法粘贴到maven pom文件中。使用Maven和GPE插件的GWT Dev部分的常见问题解答更容易。
更新 - 半自动解决方案
- 我遇到了一个名为
tera-form 。 - Google网上论坛讨论在此
I want to convert a gwt project to a maven project. I did configure->convert to maven. That just created pom.xml and target folder inside my project. The folder structure remains the same because maven project structure is src->main->java. And then I want to create a war file, can anyone help me to do this work.
You do not have fully AUTOMagic solution for this.
Steps after Configure->Convert to maven
1) Identify each library jar and version used in the project and add a corresponding dependency section for it in maven pom.
2) Create a build section in your pom and you can specify any folder structure ( suggesting you to prefer src/main/java
3) Add relevant plugins section under build for gwt compilation. Use gwt sample projects as templates.
4) Lots of copy/paste between folders ( if you migrate to maven' src/main/java ). Use Eclipse refactor feature to avoid manual visit to each file.
Stick the GWT sample projects approach for maven pom files. It's easier to troubleshoot with FAQ on the GWT Dev section for Maven and GPE plugin.
Update - Semi Automated solution
- I came across a concept of automatic maven pom generation called tera-form.
- Google Groups discussion on this
这篇关于将gwt项目转换成maven gwt项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!