我有以下Maven配置,
我的目标是将开发模式的Web-xml替换为通常的web.xml到web-dev.xml。gwt
-maven-plugin似乎已经配置好了(webXml),但不能作为eclipse插件使用(作为Web应用程序运行),而不是在mvn gwt:run时运行。
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtVersion}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<gwtSdkFirstInClasspath>true</gwtSdkFirstInClasspath>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<runTarget>index.html</runTarget>
<style>PRETTY</style>
<webXml>src/main/webapp/WEB-INF/web-dev.xml</webXml>
<inplace>true</inplace>
</configuration>
</plugin>
尽管文档说了什么,webXml
配置参数实际上仅用于mergewebxml
目标(如今几乎没有用)。
尝试以其他方式处理事情:web.xml
对于dev和web-prod.xml
您在中配置的for prod maven-war-plugin
,将按原样gwt:run
复制src/main/webapp
,绕过您可能已经为进行的任何配置maven-war-plugin
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句