Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-503

Creation of source .tar.gz fails on platforms with large group IDs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.9.14
    • Fix Version/s: 1.4.0
    • Component/s: guacamole-client
    • Labels:
      None

      Description

      When trying to build guacamole-client-0.9.14.tar.gz, I encountered the below error. This is a well known issue with maven assembly plugin documented here: https://maven.apache.org/plugins/maven-assembly-plugin/faq.html#tarFileModes  and MASSEMBLY-728.

      This can be easily fixed with changing the guacamole-auth-cas/pom.xml like so:

      <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.5.3</version>
          <configuration>
              <finalName>${project.artifactId}-${project.version}</finalName>
              <appendAssemblyId>false</appendAssemblyId>
              <tarLongFileMode>posix</tarLongFileMode>
              <descriptors> 
                  <descriptor>src/main/assembly/dist.xml</descriptor> 
              ....
      

      Also the project root pom.xml explicitly specifies tarLongFileMode as gnu, can this be changed to posix as well? 

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single (make-dist-archive) on project guacamole-auth-cas: Execution make-dist-archive of goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single failed: group id '800247164' is too big ( > 2097151 ) -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single (make-dist-archive) on project guacamole-auth-cas: Execution make-dist-archive of goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single failed: group id '800247164' is too big ( > 2097151 )
           at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
           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:116)
           at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
           at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
           at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
           at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
           at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
           at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
           at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
           at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution make-dist-archive of goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single failed: group id '800247164' is too big ( > 2097151 )
           at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
           at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
           ... 20 more
      Caused by: java.lang.RuntimeException: group id '800247164' is too big ( > 2097151 )
           at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.failForBigNumber(TarArchiveOutputStream.java:623)
           at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.failForBigNumbers(TarArchiveOutputStream.java:609)
           at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.putArchiveEntry(TarArchiveOutputStream.java:286)
           at org.codehaus.plexus.archiver.tar.TarArchiver.tarFile(TarArchiver.java:329)
           at org.codehaus.plexus.archiver.tar.TarArchiver.execute(TarArchiver.java:188)
           at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:944)
           at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:436)
           at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:181)
           at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:484)
           at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
           ... 21 more
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aditya vanka Aditya Vanka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: