On Tue, Nov 6, 2012 at 4:45 PM, Billy Newman <[email protected]> wrote:
> I am trying to filter my web.xml with no luck.
>
> Current structure:
> pom.xml
> --> src
> --->main
> ---->webapp
> ----->WEB-INF
> ------>web.xml
>
> I have the war plugin defined as follows:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.3</version>
> <configuration>
> <webResources>
> <resource>
> <directory>${basedir}/src/main/webapp/WEB-INF</directory>
> <filtering>true</filtering>
> <includes>
> <include>*.xml</include>
> </includes>
> </resource>
>
Please, try to add second section of resources:
<resource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<filtering>false</filtering>
<excludes>
<exclude>*.xml</exclude>
</excludes>
</resource>
Regards,
Tomek
> </webResources>
> </configuration>
> </plugin>
>
> After I build I can look in the target directory and the web.xml that
> lives in the exploded dir is correctly filtered. However the web.xml
> that gets packaged up in the war is not filtered. So its like my
> filtered web.xml got copied into target after the war was built. I
> imagine that I am not filtering the web.xml correctly, any ideas?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>