Despite what the doc says, the webXml
configuration parameter is actually only used for the mergewebxml
goal (almost useless nowadays).
Try doing things the other way around: web.xml
for dev, and a web-prod.xml
for prod that you configure in the maven-war-plugin
, as gwt:run
will copy your src/main/webapp
as-is, bypassing any configuration you could have made for the maven-war-plugin
.