You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ian Carr (JIRA)" <ji...@codehaus.org> on 2009/07/15 13:07:22 UTC

[jira] Created: (MECLIPSE-588) Web resource with filtering selected is copied to server without filtering.

Web resource with filtering selected is copied to server without filtering.
---------------------------------------------------------------------------

                 Key: MECLIPSE-588
                 URL: http://jira.codehaus.org/browse/MECLIPSE-588
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: WTP support
    Affects Versions: 2.7
         Environment: Win x64 JSE 1.6 MVN 2.20
            Reporter: Ian Carr


I have the following in my pom:

<plugin>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webResources>
                        <resource>
                            <directory>configurations/tomcat</directory>
                            <filtering>true</filtering>
                        </resource>
                    </webResources>

The resource directory contains a config.xml which requires substitutions hence the filtering true.

This is now being  added into the eclipse org.eclipse.wst.common.component file as follows

  <wb-module deploy-name="ClientMainWeb">
    <property name="context-root" value="ClientMainWeb"/>
    <wb-resource deploy-path="/" source-path="src/main/webapp"/>
    <wb-resource deploy-path="/" source-path="configurations/tomcat"/>

Which I believe triggers the copying of the content of the folder into the published web application directory. Unfortunately
the filtering does not occur and I end up with a non-viable context.xml.

I presume the plugin should ignore resource marked as requiring filtering and allow the user to apply a work around or
perform the filtering operation into another location and add this other location to the file rather than the original unfiltered version.

Many thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira