我从https://github.com/ArcBees/GWTP-Samples下载示例,然后通过运行方式> Maven构建运行gwtp-sample-basic应用程序,并使用Maven目标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

10-08 02:35