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

Filtering does not work on files which are symlinks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1, 2.3
    • 2.5
    • filtering
    • None
    • Linux REL 5, JDK6

    Description

      Filtering does not work on files which are symlinks. The files gets copied so it is not totally broken.
      The resource plugin seems to handle this correctly.

      Typical assmbly descriptor:
      <?xml version="1.0"?>
      <assembly>
      <id>install-jrf</id>
      <formats>
      <format>zip</format>
      </formats>
      <includeBaseDirectory>false</includeBaseDirectory>
      <baseDirectory>${project.artifactId}</baseDirectory>
      <includeSiteDirectory>false</includeSiteDirectory>
      <fileSets>
      <fileSet>
      <outputDirectory></outputDirectory>
      <directory>src/main/resources</directory>
      <filtered>true</filtered>
      </fileSet>
      </fileSets>
      </assembly>

      If files under src/main/resources are symlinks they will be copied but not filtered.
      I get this warning/info in the log(running 2.2.1):
      [DEBUG] All known ContainerDescriptorHandler components: [file-aggregator, metaInf-spring, metaInf-services, plexus]
      [DEBUG] No dependency sets specified.
      [DEBUG] FileSet[] dir perms: -1 file perms: -1
      [DEBUG] The archive base directory is 'null'
      [INFO] No files selected for line-ending conversion or filtering. Skipping: /scratch/lupersso/view_storage/lupersso_pcbpel/pcbpel/ums/worklist-tmpl/src/main/resources
      [DEBUG] Adding file-set from directory: '/scratch/lupersso/view_storage/lupersso_pcbpel/pcbpel/ums/worklist-tmpl/src/main/resources'
      assembly output directory is: ''
      [DEBUG] Adding file-set in: /scratch/lupersso/view_storage/lupersso_pcbpel/pcbpel/ums/worklist-tmpl/src/main/resources to archive location:

      (The project's pom.xml is in the /scratch/lupersso/view_storage/lupersso_pcbpel/pcbpel/ums/worklist-tmpl folder)

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            lucas300 Lucas Persson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: