Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-732

baseDirectory is ignored with files entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.1
    • 2.5.2
    • None
    • None

    Description

      With version 2.4 an assembly like this:

      <assembly>
      	<id>bin</id>
      	<formats>
      		<format>zip</format>
      	</formats>
      	<baseDirectory>spring-${project.version}</baseDirectory>
      	<includeBaseDirectory>true</includeBaseDirectory>
      	<files>
      		<file>
      		<source>${project.build.directory}/${project.artifactId}-${project.version}-full.jar</source>
      			<outputDirectory>/lib</outputDirectory>
      			<destName>${project.build.finalName}.jar</destName>
      		</file>
      	</files>
      </assembly>
      

      would write the file inside the zip under spring-${project.version}/lib. With 2.5.1 the baseDir is ignored and files are written under /lib.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            philw Phillip Webb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: