我从 https://github.com/ArcBees/GWTP-Samples 下载了样本我通过 Run As > Maven build 运行 gwtp-sample-basic 应用程序,使用 Maven objective-c lean gwt:run。它打开 super 开发模式控制台,我可以从中“在默认浏览器中打开”应用程序。但是现在我想将应用程序部署到 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
关于tomcat - 如何从 https ://github. com/ArcBees/GWTP-Samples 部署 gwtp 样本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43616989/