在PlayN中,如何从命令行构建我的项目的HTML版本? [英] In PlayN, how can I build the HTML version of my project from the command line?

查看:93
本文介绍了在PlayN中,如何从命令行构建我的项目的HTML版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在使用GWT插件在Eclipse中构建它。我希望使用脚本从命令行执行GWT编译来自动化部署到我的开发Web服务器。



我遵循Running Maven中的指示使用入门页面部分:

  mvn -Phtml整合测试

但它试图构建所有版本,错误地在Android版本上(我现在更喜欢跳过),并引发一个警告,说明html配置文件不存在:

  [信息] -------------------------------- ---------------------------------------- 
[INFO] Reactor Summary:
[信息]
[信息] MyPlaynGame Metaproject .......................... SUCCESS [0.375s]
[信息] MyPlaynGame核心.................................成功[1.638s]
[信息] MyPlaynGame Java ................................. SUCCESS [0.319s]
[信息] MyPlaynGame HTML ................................. SUCCESS [4.019s]
[信息] MyPlaynGame Android .............................. FAILURE [0.308s]
[INFO] ------ -------------------------------------------------- ----------------
[INFO] BUILD FAILURE
[INFO] ------------------ -------------------------------------------------- ----
[信息]总时间:7.903s
[信息]完成日期:Mon Jun 04 22:17:33 PDT 2012
[INFO] Final Memory:15M / 255M
[信息] -------------------------------------------- ----------------------------
[警告]请求的配置文件html无法激活,因为它不存在。

如何才能构建html版本?

解决方案

mvn clean package -pl core,html

这将只编译核心和html包。如果你只想要html,你仍然需要核心软件包。



默认输出到目标文件夹中。


Currently I'm building it in Eclipse using the GWT plugin. I'd like to automate deployment to my development webserver using a script that does the GWT compilation from the command line.

I've followed the directions in the Running Via Maven section of the Getting Started page:

mvn -Phtml integration-test

But it tries to build all the versions, erring out on the Android build (which I'd prefer to skip at the moment) and throws a warning stating the html profile doesn't exist:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] MyPlaynGame Metaproject .......................... SUCCESS [0.375s]
[INFO] MyPlaynGame Core ................................. SUCCESS [1.638s]
[INFO] MyPlaynGame Java ................................. SUCCESS [0.319s]
[INFO] MyPlaynGame HTML ................................. SUCCESS [4.019s]
[INFO] MyPlaynGame Android .............................. FAILURE [0.308s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.903s
[INFO] Finished at: Mon Jun 04 22:17:33 PDT 2012
[INFO] Final Memory: 15M/255M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "html" could not be activated because it does not exist.

How can I get it just to build the html version?

解决方案

mvn clean package -pl core,html

This will only compile the core and html packages. If you only want html, you still need the core package.

The output will be by default in the target folder.

这篇关于在PlayN中,如何从命令行构建我的项目的HTML版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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