Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-183

Unpack goal cannot unpack sar files.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: unpack, unpack-dependencies
    • Labels:
      None
    • Flags:
      Patch

      Description

      If you specify a dependency with type=sar the plexus ArchiverManager throws a NoSuchArchiverException. As a result the unpacking fails. I think the fix would be similar to that for the swc file bug.
      http://jira.codehaus.org/browse/MDEP-99

      Patch for src/main/resources/META-INF/plexus/components.xml:

      <component>
      + <role>org.codehaus.plexus.archiver.UnArchiver</role>
      + <role-hint>sar</role-hint>
      + <!-- there is no implementaion of SARUnArchiver, but ZipUnArchive will do the job -->
      + <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
      + <instantiation-strategy>per-lookup</instantiation-strategy>
      + </component>

      Note: sar files are the JBoss Service archives. Doing exploded deployment of sar archives in JBoss using this plugin is the aim here.

        Attachments

          Activity

            People

            • Assignee:
              brianf Brian E Fox
              Reporter:
              yousuf.haider Yousuf Haider
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: