Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-203

overlay <include> to strip the original path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Auto Closed
    • None
    • None
    • overlay
    • None
    • 2.1-beta-1

    Description

      I have a base-war project which I'd like to overlay into my project-war. To avoid filename conflicts I use <targetPath>, but the result is project//targetPath/WEB-INF/... and I don't really want the WEB-INF in there. I came across this posting with the same issue: http://www.coderanch.com/t/447258/Ant-Maven-Other-Build-Tools/Maven-war-dependencies-moving-files.

      I also tried an assembly approach, but this also includes WEB-INF. Other ideas could include using the dependency plugin, antrun-plugin, cargo plugin or some other option? However, I would like to use jetty now that it is supporting overlays http://jira.codehaus.org/browse/JETTY-1027.

      Perhaps some mechanism like this could be added:
      under <includes> or <include>
      <excludePathPrefix>/WEB-INF/</excludePathPrefix> <!-- ignores the prefix given -->
      <excludePath>true</excludePath> <!-- copies only the filename -->

      Attachments

        Activity

          People

            Unassigned Unassigned
            adam_jh Adam Hamer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: