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

wont put files in top level directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.2-beta-1
    • None
    • None
    • Windows XP using maven 2.0.4. I think I am using assembly 2.1 as that is the only version I could find in my ~/.m2 directory.

    Description

      I am relatively new to Maven so hopefully this is not a silly mistake, but the following assembly XML file will NOT include the TODO.txt file. If you put the file into a subdirectory (using <outputDirectory>a/b/c</outputDirectory> or by setting <includeBaseDirectory>true</includeBaseDirectory>) then the file will appear in the ZIP file. This is at least non-intuitive, but feels like a bug to me.
      <assembly>
      <id>bug-example</id>
      <formats>
      <format>zip</format>
      </formats>
      <includeBaseDirectory>false</includeBaseDirectory>
      <files>
      <file>
      <source>TODO.txt</source>
      <outputDirectory>/</outputDirectory>
      </file>
      </files>
      </assembly>

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            alan.j.kent Alan Kent
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: