【发布时间】:2017-04-26 04:08:35
【问题描述】:
我从 https://github.com/ArcBees/GWTP-Samples 下载了示例,并通过运行方式运行 gwtp-sample-basic 应用程序 > Maven build with Maven targets clean gwt:run。它打开了超级开发模式控制台,我可以从中“在默认浏览器中打开”应用程序。但是,现在我想将应用程序部署到 Tomcat 8 服务器。我该怎么做?
【问题讨论】:
我从 https://github.com/ArcBees/GWTP-Samples 下载了示例,并通过运行方式运行 gwtp-sample-basic 应用程序 > Maven build with Maven targets clean gwt:run。它打开了超级开发模式控制台,我可以从中“在默认浏览器中打开”应用程序。但是,现在我想将应用程序部署到 Tomcat 8 服务器。我该怎么做?
【问题讨论】:
mvn clean package?严重地。在您有兴趣部署到 Tomcat 的每个项目中运行它以生成 war 文件 - 见下文。
~/GWTP-Samples> find . -name *.war
./gwtp-samples/gwtp-sample-mobile/target/gwtp-sample-mobile-2.0-SNAPSHOT.war
./gwtp-samples/gwtp-sample-basic/target/gwtp-sample-basic-2.0-SNAPSHOT.war
./gwtp-samples/gwtp-sample-basic-spring/target/gwtp-sample-basic-spring-2.0-SNAPSHOT.war
./gwtp-samples/gwtp-sample-crawler-service/target/gwtp-sample-crawler-service-2.0-SNAPSHOT.war
./gwtp-samples/gwtp-sample-nested/target/gwtp-sample-nested-2.0-SNAPSHOT.war
./carstore/target/carstore-1.6-SNAPSHOT.war
./multimodule/aggregate/target/aggregate-2.0-SNAPSHOT.war
【讨论】: