George Berger wrote on Wednesday, February 07, 2007 5:02 PM:
> I'm trying to use the war overlay feature of maven-war-plugin
> to include some
> common JSPs (e.g. common header and footer files) in multiple
> projects, but I also want to use jspc-maven-plugin to precompile the
> project JSPs.
[snip]
> This works great, almost: the overlaid war directory gets
> created, jspc
> precompiles its JSPs, and the war plugin creates the final
> war containing
> all the precompiled JSP classes in its WEB-INF/classes directory.
>
> The only problem is that the war contains the original web.xml from
> src/main/webapps/WEB-INF instead of the rewritten version
> created by jspc,
> even though the configuration to use the rewritten one still
> exists in the
> second maven-war-plugin declaration.
>
> Any ideas why this is happening or how to get around it?
Can't you simply exclude the web.xml from the overlay?
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<dependentWarExcludes>WEB-INF/web.xml</dependentWarExcludes>
</configuration>
</plugin>
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]