Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-588

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.7
    • None
    • WTP support
    • None
    • Win x64 JSE 1.6 MVN 2.20

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            icarr icarr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: