Resources <targetPath> is not hadled accordingly to documentation -----------------------------------------------------------------
Key: MWAR-265 URL: https://jira.codehaus.org/browse/MWAR-265 Project: Maven 2.x WAR Plugin Issue Type: Bug Affects Versions: 2.1-alpha-2 Environment: Windows XP, java version "1.6.0_26", maven 2.2.1 Reporter: Maciej Łoziński My pom.xml works differently from thw way documentent in section "Overriding the default destination directory" of document http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html . I try this configuration: <resources> <resource> <!-- select by "-DdeployTarget=local" or "-DdeployTarget=test" or "-DdeployTarget=production" --> <directory>src/main/resources/${deployTarget}</directory> <targetPath>WEB-INF</targetPath> </resource> </resources> But it copies files to "/WEB-INF/classes/WEB-INF/" instead of just "WEB-INF/", as stated in documentation. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira