Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1354

Maven Assembly Plugin and Maven Dependency Plugin don't know how to unpack XIP files

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      He's an example stack trace we get:

      Caused by: org.codehaus.plexus.archiver.manager.NoSuchArchiverException: No such archiver: 'xip'.
          at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getResourceCollection (DefaultArchiverManager.java:94)
          at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getResourceCollection (DefaultArchiverManager.java:140)
          at org.codehaus.plexus.archiver.AbstractArchiver.asResourceCollection (AbstractArchiver.java:703)
          at org.codehaus.plexus.archiver.AbstractArchiver.addArchivedFileSet (AbstractArchiver.java:781)
          at org.apache.maven.plugins.assembly.archive.archiver.AssemblyProxyArchiver.addArchivedFileSet (AssemblyProxyArchiver.java:698)
          at org.apache.maven.plugins.assembly.archive.task.AddArtifactTask.unpacked (AddArtifactTask.java:234)
          at org.apache.maven.plugins.assembly.archive.task.AddArtifactTask.execute (AddArtifactTask.java:128)
          at org.apache.maven.plugins.assembly.archive.task.AddDependencySetsTask.addNormalArtifact (AddDependencySetsTask.java:263)
          at org.apache.maven.plugins.assembly.archive.task.AddDependencySetsTask.addDependencySet (AddDependencySetsTask.java:175)
          at org.apache.maven.plugins.assembly.archive.task.AddDependencySetsTask.execute (AddDependencySetsTask.java:120)
          at org.apache.maven.plugins.assembly.archive.phase.DependencySetAssemblyPhase.execute (DependencySetAssemblyPhase.java:104)
          at org.apache.maven.plugins.assembly.archive.DefaultAssemblyArchiver.createArchive (DefaultAssemblyArchiver.java:181)
          at org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.execute (AbstractAssemblyMojo.java:478)
          at org.apache.maven.plugins.assembly.mojos.SingleAssemblyMojo.execute (SingleAssemblyMojo.java:61)
      

      I tried what is indicated on https://issues.apache.org/jira/browse/MDEP-108 but it didn't help:

      <component>
        <role>org.codehaus.plexus.archiver.UnArchiver</role>
        <role-hint>xip</role-hint>
        <!-- A XIP is just a ZIP archive. -->
        <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
        <instantiation-strategy>per-lookup</instantiation-strategy>
      </component>
      
      <plugin>
        <groupId>org.xwiki.commons</groupId>
        <artifactId>xwiki-commons-tool-extension-plugin</artifactId>
        <version>10.1-SNAPSHOT</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <dependencies>
          <dependency>
            <groupId>org.xwiki.commons</groupId>
            <artifactId>xwiki-commons-tool-extension-plugin</artifactId>
            <version>10.1-SNAPSHOT</version>
          </dependency>
        </dependencies>
      </plugin>
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: