|
David L. Whitehurst made changes - 20/Jan/07 10:01 PM
Add <filtering>true</filtering> to the /src/main/webapp resources in the root pom of the archetype-created project.
<testResources> <testResource> <directory>src/test/resources</directory> </testResource> <testResource> <directory>src/main/webapp</directory> <filtering>true</filtering> <includes> <include>**/*.xml</include> </includes> </testResource> </testResources>
David L. Whitehurst made changes - 20/Jan/07 10:03 PM
added filtering to webapp dir
added filtering to webapp dir
added filtering to webapp dir
added filtering to webapp dir
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
For example, if I run "mvn clean" followed by "mvn -Djdbc.url=jdbc:mysql://localhost/testit", the target/test-classes/jdbc.properties still has "appfuse" in it's
jdbc.url property.
I don't know if filters would help.
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
This seems like a bug in Maven to me.