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

The outputFileNameMapping config creates bad dependency files in WEB-INF/lib

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1-alpha-1
    • 2.1-alpha-2
    • None
    • None

    Description

      I've tried using the new outputFileNameMapping feature (MWAR-93) by adding the following to my POM:

      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-war-plugin</artifactId>
      <version>2.1-alpha-1-SNAPSHOT</version>
      <configuration>
      <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
      </configuration>
      </plugin>

      This results in really oddly named files in my web-inf/lib now. A typical example:
      org.springframework-mywebapp.null

      So, the resulting files are really mapped more like: ${groupId of the dependency}-${artifactId of my war module}.null

      I've attached an example Maven 2 project that demonstrates this. Just run "mvn package" and look at the result in target.

      Attachments

        1. mwar_93_webapp.zip
          2 kB
          Chris Moesel

        Activity

          People

            olamy Olivier Lamy
            cmoesel Chris Moesel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: