Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 11.10 (oneiric)
    • Number of attachments :
      1

      Description

      This is a report again org.apache.maven.plugins:maven-assembly-plugin:2.2.2:single (package-assembly) used in conjunction with maven 3.0.3. I'm trying to build ebml-viewer from svn r126 (lastest) at http://code.google.com/p/ebml-viewer/source/checkout . Build fails on Linux, but the developer of ebml-viewer reports that it builds fine on Windows.

      Last lines of output from failed build with 'mvn -DskipTests -X -e package 2>&1 | tee log':

      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2:37.924s
      [INFO] Finished at: Tue Dec 06 20:30:47 CET 2011
      [INFO] Final Memory: 8M/216M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.2:single (package-assembly) on project ebml-viewer: Failed to create assembly: Error creating assembly archive bin: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /' -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.2:single (package-assembly) on project ebml-viewer: Failed to create assembly: Error creating assembly archive bin: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error creating assembly archive bin: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
      at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:504)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 19 more
      Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating assembly archive bin: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
      at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:189)
      at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:445)
      ... 21 more
      Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
      at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:439)
      at org.apache.maven.plugin.assembly.filter.ComponentsXmlArchiverFileFilter.finalizeArchiveCreation(ComponentsXmlArchiverFileFilter.java:166)
      at org.codehaus.plexus.archiver.AbstractArchiver.runArchiveFinalizers(AbstractArchiver.java:845)
      at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:869)
      at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:512)
      at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:185)
      ... 22 more
      Caused by: java.io.IOException: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
      at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java:281)

      Please refer to the attachment for the complete output.

        Activity

        Hide
        Thomas Pasch added a comment -
        Show
        Thomas Pasch added a comment - Issue at ebml-viewer: http://code.google.com/p/ebml-viewer/issues/detail?id=1
        Hide
        Hung Huynh added a comment -

        I got the same error but the failure to me seem to be coming from maven-jar-plugin. Here's my log

        [INFO] Tests are skipped.
        [INFO] [jar:jar

        {execution: default-jar}

        ]
        [INFO] ------------------------------------------------------------------------
        [ERROR] BUILD ERROR
        [INFO] ------------------------------------------------------------------------
        [INFO] Error assembling JAR

        Embedded error: Failed to read filesystem attributes for: /export1/cruise/jenkins/workspace/terracotta-toolkit-ee_trunk_tests_JROCKIT_1.6_normal/trunk/toolkit-api-ee/pom.xml
        Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1lad /export1/cruise/jenkins/workspace/terracotta-toolkit-ee_trunk_tests_JROCKIT_1.6_normal/trunk/toolkit-api-ee/pom.xml'

        Show
        Hung Huynh added a comment - I got the same error but the failure to me seem to be coming from maven-jar-plugin. Here's my log [INFO] Tests are skipped. [INFO] [jar:jar {execution: default-jar} ] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling JAR Embedded error: Failed to read filesystem attributes for: /export1/cruise/jenkins/workspace/terracotta-toolkit-ee_trunk_tests_JROCKIT_1.6_normal/trunk/toolkit-api-ee/pom.xml Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1lad /export1/cruise/jenkins/workspace/terracotta-toolkit-ee_trunk_tests_JROCKIT_1.6_normal/trunk/toolkit-api-ee/pom.xml'
        Hide
        Kristian Rosenvold added a comment -

        This error can always be fixed by upgrading the version of plexus-io used by the plugin to the latest version

        Show
        Kristian Rosenvold added a comment - This error can always be fixed by upgrading the version of plexus-io used by the plugin to the latest version
        Hide
        Oleg Estekhin added a comment -

        What plugins are affected (which version of plexus-io causes this)?

        Who should upgrade the version of plexus-io used by these plugins (should users of such pluging use a dummy plexus-io dependency in their own projects or will the new versions of plugins be released with the fixed dependency)?

        Show
        Oleg Estekhin added a comment - What plugins are affected (which version of plexus-io causes this)? Who should upgrade the version of plexus-io used by these plugins (should users of such pluging use a dummy plexus-io dependency in their own projects or will the new versions of plugins be released with the fixed dependency)?
        Hide
        Leonids M. added a comment -

        workaround (worked for me)

        <fileSet>
                    <directory>${basedir}</directory>
                    <includes>
                        <include>build.sh</include>
                    </includes>
                    <filtered>false</filtered>
                    <outputDirectory>/</outputDirectory>
                </fileSet>
        
        Show
        Leonids M. added a comment - workaround (worked for me) <fileSet> <directory>${basedir}</directory> <includes> <include>build.sh</include> </includes> <filtered> false </filtered> <outputDirectory>/</outputDirectory> </fileSet>
        Hide
        Kristian Rosenvold added a comment -

        Fixed in r1235501

        Show
        Kristian Rosenvold added a comment - Fixed in r1235501
        Hide
        Jamie Goodyear added a comment -

        Hi All,

        At Apache Karaf we updated on karaf-2.2.x branch to using assembly plugin 2.3 from 2.2.1 and have seen the above issue begin to occur on Mac OSX 10.7.4 systems. As such we've rolled back to version 2.2.1 https://issues.apache.org/jira/browse/KARAF-1604.

        The test case for mac is to build karaf-2.2.x, you'll observe during the assembly phase that when unix-src is being processed the "ls -1nlaR" error occurs.

        Cheers,
        Jamie

        Show
        Jamie Goodyear added a comment - Hi All, At Apache Karaf we updated on karaf-2.2.x branch to using assembly plugin 2.3 from 2.2.1 and have seen the above issue begin to occur on Mac OSX 10.7.4 systems. As such we've rolled back to version 2.2.1 https://issues.apache.org/jira/browse/KARAF-1604 . The test case for mac is to build karaf-2.2.x, you'll observe during the assembly phase that when unix-src is being processed the "ls -1nlaR" error occurs. Cheers, Jamie
        Hide
        Jean-Baptiste Onofré added a comment -

        I second Jamie. I had to rollback to 2.2.1 for have assembly working on MacOS (no problem on Linux).

        I propose to reopen this Jira as it's not fix in 2.3 (on MacOS).

        Show
        Jean-Baptiste Onofré added a comment - I second Jamie. I had to rollback to 2.2.1 for have assembly working on MacOS (no problem on Linux). I propose to reopen this Jira as it's not fix in 2.3 (on MacOS).
        Hide
        Jamie Goodyear added a comment -

        Some additional testing information:

        Works on Mac OSX 10.5.8 with Maven 2.2.1 + 1.6.0 Java

        Does NOT work on Mac OSX 10.7.4 with Maven 2.2.1 + 1.6.0 Java

        The plugin works find on Ubuntu 10.04 LTS with Maven 2.2.1 + 1.6.0 Java (Karaf's regular release server).

        Show
        Jamie Goodyear added a comment - Some additional testing information: Works on Mac OSX 10.5.8 with Maven 2.2.1 + 1.6.0 Java Does NOT work on Mac OSX 10.7.4 with Maven 2.2.1 + 1.6.0 Java The plugin works find on Ubuntu 10.04 LTS with Maven 2.2.1 + 1.6.0 Java (Karaf's regular release server).

          People

          • Assignee:
            Kristian Rosenvold
            Reporter:
            Thomas Pasch
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: