Now I am creating a web project with maven 3.1.1 and maven war plugin 2.4 ( http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html ). In particular, I am trying to copy and filter a resource using the maven war plugin in a way that I have already done in the past, and it worked. The appropriate pom configuration follows here:
WAR plugin configuration
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
...
<webResources>
<resource>
<directory>src/main/webapp/META-INF</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
<targetPath>META-INF</targetPath>
</resource>
...
</configuration>
</plugin>
...
Activated Profile Definition:
...
<profiles>
<profile>
<id>dummyDev</id>
<build>
<filters>
<filter>filters/development.properties</filter>
</filters>
</build>
</profile>
...
META-INF / context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="${tomcat.context.reloadable}">
</Context>
And finally, "development.properties":
tomcat.context.reloadable=true
.xml WAR, . , (.. ): , thep. , - . , , "", maven , ( maven ).
, maven war 2.1.1 ( 2.3), : maven war, , .
- ? maven war? ( ) ? .