将Eclipse/GWT插件应用程序拆分为单独的项目 [英] Splitting an Eclipse/GWT Plugin app into separate projects

查看:87
本文介绍了将Eclipse/GWT插件应用程序拆分为单独的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse-GWT插件在单个Eclipse项目中开发了一个应用程序.现在,我想将一些常规小部件移到一个单独的Eclipse项目中.我创建了一个新的Java项目,并想向其添加新的GWT模块",但是向导说源文件夹不是GWT项目的一部分".如何拆分我的GWT项目,以免构建一件整体的东西?

I developed an application in a single Eclipse project using the Eclipse-GWT plugin. Now I would like to move some of my general widgets into a separate Eclipse project. I created a new Java project and wanted to "Add a new GWT module" to it, but the wizard says that "The source folder is not part of a GWT Project." How can I split up my GWT project to avoid building one monolithic thing?

推荐答案

使用maven并确保对另一个项目依赖的项目打开资源过滤.

Use maven and make sure to turn on resource filtering on the project the other depends on:

<build>
    <resources>
        <resource>
            <directory>src/main/java/</directory>
        </resource>
        <resource>
            <directory>src/main/resources</directory>
        </resource>
    </resources>
...
</build>

有关更多详细信息,请参见此博客文章 ,以及多模块上的gwt-maven-plugin设置.

For more details have a look at this blog post, and gwt-maven-plugin on multi-module setup.

这篇关于将Eclipse/GWT插件应用程序拆分为单独的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆