[英]GWT project deployment to tomcat in STS(Eclipse)
我在 STS(Eclipse) 中有一個 maven 項目,我嘗試將它部署到 STS 中的 Tomcat 6。 對於 maven 安裝,我使用 gwt-maven-plugin。 已安裝的 war 包含所有文件夾(WEB-INF/、META-INF/、已編譯的 GWT 前端文件夾)。 當我將此項目部署到 tomcat(在 STS 中)時,webapps/project 文件夾中只有 WEB-INF 和 META-INF 文件夾。 已編譯 GWT 前端的文件夾無處可尋。 在 context.xml 中,我什至嘗試將 docBase 設置為已安裝的戰爭,但結果沒有區別。 有沒有人知道問題出在哪里?,因為現在我必須手動將此文件夾復制到 webapps 中的解壓縮文件夾。 非常感謝。
可能是配置問題,請在此處發布您的 gwt-maven-plugin xml。 這是我的,僅供參考
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
<configuration>
<logLevel>DEBUG</logLevel>
<style>PRETTY</style>
<runTarget>/ApplicationScaffold.html</runTarget>
<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
<!-- <modules><module>${project.groupId}.Main</module></modules>-->
<copyWebapp>true</copyWebapp>
<debugPort>8001</debugPort>
<extraJvmArgs>-Xmx900m</extraJvmArgs>
<!-- instruct plugin not to require open browser in test mode -->
<mode>htmlunit</mode>
<!-- compiler speed up -->
<draftCompile>true</draftCompile>
<optimizationLevel>0</optimizationLevel>
<disableAggressiveOptimization>true</disableAggressiveOptimization>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<dependencies>
<!-- must override the plugin's default dependencies -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
</dependency>
</dependencies>
</plugin>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.