[ https://jira.codehaus.org/browse/MASSEMBLY-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=286142#comment-286142 ]
Patrick Sauts commented on MASSEMBLY-344: ----------------------------------------- I have the same problem. Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.2:single (assembly) on project viadeo-daemons: Failed to create assembly: Error creating assembly archive prod: Problem creating TAR: entry closed at '129' before the '261' bytes specified in the header were written -> [Help 1] Even adding <configuration> <tarLongFileMode>gnu</tarLongFileMode> </configuration> into my pom.xml > assembly fails on unix if 'appendAssemblyId' is set to false, and > 'classifier' is missing. on windows it works > -------------------------------------------------------------------------------------------------------------- > > Key: MASSEMBLY-344 > URL: https://jira.codehaus.org/browse/MASSEMBLY-344 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.2-beta-2 > Environment: Linux 2.6.9-42 > Reporter: Piotr Kania > Assignee: John Casey > Attachments: examples.xml, log-unix.txt, log-windows.txt, pom.xml > > > I got following error building maven assembly: > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to create assembly: Error creating assembly archive > myproduct-examples: Problem creating TAR: entry closed at '0' before the > '29836' bytes specified in the header were written > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create > assembly: Error creating assembly archive myproduct-examples: Problem > creating TAR: entry closed at '0' before the '29836' bytes specified in the > header were written > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create > assembly: Error creating assembly archive myproduct-examples: Problem > creating TAR: entry closed at '0' before the '29836' bytes specified in the > header were written > at > org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:368) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > ... 16 more > Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: > Error creating assembly archive myproduct-examples: Problem creating TAR: > entry closed at '0' before the '29836' bytes specified in the header were > written > at > org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:136) > at > org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:322) > ... 18 more > Caused by: org.codehaus.plexus.archiver.ArchiverException: Problem creating > TAR: entry closed at '0' before the '29836' bytes specified in the header > were written > at > org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:779) > at > org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:496) > at > org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:132) > ... 19 more > Caused by: java.io.IOException: entry closed at '0' before the '29836' bytes > specified in the header were written > at > org.codehaus.plexus.archiver.tar.TarOutputStream.closeEntry(TarOutputStream.java:233) > at > org.codehaus.plexus.archiver.tar.TarArchiver.tarFile(TarArchiver.java:310) > at > org.codehaus.plexus.archiver.tar.TarArchiver.execute(TarArchiver.java:209) > at > org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:762) > ... 21 more > This problem occurs only in Unix environment, I check access rights - they > are correct. > On Windows mvn build is successfull however following warning is issued: > Configuration options: 'appendAssemblyId' is set to false, and 'classifier' > is missing. > Instead of attaching the assembly file: > c:\prj\myproduct3\trunk\install\package\examples\target\myproduct-examples-3.3.59-SNAPSHOT.tar.gz, > it will become the file for main project artifact. > NOTE: If multiple descriptors or descriptor-formats are provided for this > project, the value of this file will be non-deterministic! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira