哪个 Maven(2) 插件可与 GWT 1.6 一起使用?
似乎有很多 关于将 Maven 与 GWT 1.6 集成的混乱,因为 Google 已将布局更改为“爆炸战争”格式。 您正在使用哪个插件? 它有托管/编译的目标吗? 它是否“就地”工作,将输出写入 src/main/webapp/WEB-INF,还是使用外部目录? (我不是粉丝< /a> 让 GWT 生成的输出出现在我的源代码树中)。
如果您有一些工作,POM 片段也将受到高度赞赏。
There seems to be quite a lot of confusion regarding integrating Maven with GWT 1.6, as Google has changed the layout to "exploded war" format. Which plugin are you using? Does it have goals for hosted/compile? Does it work "in place", writing output to src/main/webapp/WEB-INF
, or does it use an external dir? (I'm not a fan of having GWT-generated output appearing in my source tree).
If you have something working, POM snippets would be highly appreciated as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里有一篇关于如何一起使用 GWT 1.6、Google Eclipse 插件、maven 2 和 gwt-maven-plugin。
There's an article here about how to use GWT 1.6, the Google Eclipse Plugin, maven 2, and the gwt-maven-plugin all together.
我通过此处下载 GWT Maven2 Starter 应用程序来完成此工作然后更改 pom 以使用 GWT 1.6.4,它似乎可以工作。
I had this working by downloading the GWT Maven2 Starter App here and then changing the pom to use GWT 1.6.4 and it just seemed to work.
我已更新 gwt-maven2-starter-app 以使用GWT 1.6.x 和 codehaus maven-gwt-plugin。 他们的解决方法是偏离 Maven 约定,并使用 1.6 标准 /war 目录(而不是 src/main/webapp)来存储 Web 应用程序工件和 GWT 生成的输出(您应该将其添加到 .svnignore)。
I have updated the gwt-maven2-starter-app to use GWT 1.6.x and the codehaus maven-gwt-plugin. Their work around is to deviate from the maven convention and to use the 1.6 standard /war directory inplace (instead of src/main/webapp) for webapp artifacts and GWT generated output (which you should add to .svnignore).