Unpack goal cannot unpack sar files.
------------------------------------

                 Key: MDEP-183
                 URL: http://jira.codehaus.org/browse/MDEP-183
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: unpack, unpack-dependencies
            Reporter: Yousuf Haider
            Assignee: Brian Fox


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to