outputFileNameMapping does not account for custom module value
--------------------------------------------------------------

                 Key: MASSEMBLY-573
                 URL: https://jira.codehaus.org/browse/MASSEMBLY-573
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.2.1
         Environment: Windows Vista
            Reporter: Richard Kerr


I have a project that has an artifact (WAR) which has a custom build.finalName 
value.  
When including this artifact in a zip assembly (from another module), the 
custom value is not honored and the default value is used instead.

Project Structure:

+ project-parent
    +-> war-module-with-custom-finalName
    +-> release-zip

<assembly 
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
 http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
  <id>release-zip</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <moduleSets>
    <moduleSet>
      <useAllReactorProjects>true</useAllReactorProjects>
      <includes>
        <include>${project.groupId}:war-module-with-custom-finalName</include>
      </includes>
      <binaries>
        <outputDirectory>install/</outputDirectory>
        <outputFileNameMapping>${module.build.finalName}</outputFileNameMapping>
        <unpack>false</unpack>
      </binaries>
    </moduleSet>
  </moduleSets>
</assembly>


Zip contents:
+install
   +---war-module-with-custom-finalName-1.0.0-SNAPSHOT.war
   
Expected zip contents:
+install
   +---CustomFinalName.war

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to