Maven Assembly Plugin
  1. Maven Assembly Plugin
  2. MASSEMBLY-343

add symbolic links managment (java7+ only supported)

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2-beta-2
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      linux, ubuntu
    • Patch Submitted:
      Yes
    • Number of attachments :
      3

      Description

      i need to buid archives ( tar for example ) with symbolic links

      the plugin build an archive with a file containing the destination of the link, not the link itself

      => the plugin need an option to know if deferencement of links is needed
      this is just like -h option of tar
      -h, --dereference
      don't dump symlinks; dump the files they point to

      actually, if you do an archive of /lib, for example, many file will be in double with diffÒ©rent names. extract of archive will not be the exactly the same as the source of the archive. => this is a test !

      1. MASSEMBLY-343_maven-assembly-plugin_fixed.patch
        38 kB
        Zuhayr Khan
      2. MASSEMBLY-343_maven-assembly-plugin.patch
        39 kB
        Zuhayr Khan
      3. symlink-test.tar.gz
        2 kB
        Hitanjan Sarkar

        Issue Links

          Activity

          Hide
          Hitanjan Sarkar added a comment -

          Symlink test project.
          Contains a symlink generator (symlinks generated using ant-runer and bundled using assembly plugin) and a symlink consumer that unwraps the dependency using (dependency plugin).

          My objective is to pack a symlink (using assembly) and unpack it (using dependency-unpack) and see if links remain intact.

          With assembly-plugin v2.4, the links get resolved into a regular folder structure (dereferenced basically) at the end of the assembly.
          With v2.5, atleast the assembly-generated artifact should bundle symlinks. But instead the symlinks appear as empty directories.

          Show
          Hitanjan Sarkar added a comment - Symlink test project. Contains a symlink generator (symlinks generated using ant-runer and bundled using assembly plugin) and a symlink consumer that unwraps the dependency using (dependency plugin). My objective is to pack a symlink (using assembly) and unpack it (using dependency-unpack) and see if links remain intact. With assembly-plugin v2.4, the links get resolved into a regular folder structure (dereferenced basically) at the end of the assembly. With v2.5, atleast the assembly-generated artifact should bundle symlinks. But instead the symlinks appear as empty directories.
          Hide
          Hitanjan Sarkar added a comment -

          I 've tested this on OS X Yosemite, Ubuntu Desktop 14.04, and Suse Linux Enterprise Server.
          All versions of Java have been 7+ and Oracle JDK ( I hope any JDK>=7 should have worked).
          Java version "1.7.0_71"

          I have attached a 'symlink-test' project.

          Show
          Hitanjan Sarkar added a comment - I 've tested this on OS X Yosemite, Ubuntu Desktop 14.04, and Suse Linux Enterprise Server. All versions of Java have been 7+ and Oracle JDK ( I hope any JDK>=7 should have worked). Java version "1.7.0_71" I have attached a 'symlink-test' project.
          Hide
          Kristian Rosenvold added a comment -

          @Hitanjan Sarkar Would you min dcreating a separat issue for this ? 2.5.2 is not too far off and I'll definitely take a look at this !

          Show
          Kristian Rosenvold added a comment - @Hitanjan Sarkar Would you min dcreating a separat issue for this ? 2.5.2 is not too far off and I'll definitely take a look at this !
          Hide
          Hitanjan Sarkar added a comment -

          Sure Kristian, will do.
          Thanks !!!

          Any idea of the tentative date when 2.5.2 might be released ?

          Also, there is a corresponding outstanding issue on the dependency plugin, tracked here - http://jira.codehaus.org/browse/MDEP-68
          Would you be the right person to ask about this too ?
          From whatever little I seem to have gathered on this, since the plexus-io and plexus-archiver plugins have this fix in, the dependency plugin would probably need to be re-released with the updated plexus dependencies or something similar ?

          Show
          Hitanjan Sarkar added a comment - Sure Kristian, will do. Thanks !!! Any idea of the tentative date when 2.5.2 might be released ? Also, there is a corresponding outstanding issue on the dependency plugin, tracked here - http://jira.codehaus.org/browse/MDEP-68 Would you be the right person to ask about this too ? From whatever little I seem to have gathered on this, since the plexus-io and plexus-archiver plugins have this fix in, the dependency plugin would probably need to be re-released with the updated plexus dependencies or something similar ?
          Hide
          Hitanjan Sarkar added a comment -
          Show
          Hitanjan Sarkar added a comment - Created the issue here - https://jira.codehaus.org/browse/MASSEMBLY-731

            People

            • Assignee:
              Kristian Rosenvold
              Reporter:
              Godet Gilles
            • Votes:
              9 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: