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

Add the ability to provide a mapping for libraries copied in WEB-INF/lib (outputFileNameMapping)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.1-alpha-1
    • None
    • None

    Description

      The war plugin needs a mapping strategy for libs copied in the WEB-INF/lib directory

      The worst case I can see is when you have SNAPSHOT dependencies and you download a new SNAPSHOT without calling mvn clean. Since Maven will copy the library with the "full name" (i.e. with the build number), you end up with two versions of the library in your WEB-INF/lib.

      The functionality already exists in the assembly plugin and is based on plexus-utils.

      Attachments

        Issue Links

          Activity

            People

              snicoll Stephane Nicoll
              snicoll Stephane Nicoll
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: