Error building bin assembly
I am trying to use the pre-defined bin assembly descriptor (descriptorRef) and I am getting an error stating that A tar file cannot include itself. I've included a full stack trace below. Does anyone know what might be wrong? Is there any other information I should include to help diagnose? Thanks. [INFO] Building tar : /Users/jvoegele/projects/terracotta/forge/sparse/tc-maven-plugin/tags/release-1.6.1/target/site/downloads/tc-maven-plugin-1.6.1-bin.tar.gz [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 18.239s [INFO] Finished at: Wed Nov 10 09:37:36 EST 2010 [INFO] Final Memory: 33M/81M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:assembly (downloads) on project tc-maven-plugin: Failed to create assembly: Error creating assembly archive bin: A tar file cannot include itself. - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:assembly (downloads) on project tc-maven-plugin: Failed to create assembly: Error creating assembly archive bin: A tar file cannot include itself. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) 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:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) 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:597) 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: A tar file cannot include itself. at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:468) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) ... 19 more Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating assembly archive bin: A tar file cannot include itself. at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:196) at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:409) ... 21 more Caused by: org.codehaus.plexus.archiver.ArchiverException: A tar file cannot include itself. at org.codehaus.plexus.archiver.tar.TarArchiver.execute(TarArchiver.java:202) at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:871) at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:512) at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:192) ... 22 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error building bin assembly
full stack trace below. Does anyone know what might be wrong? Is there any other information I should include to help diagnose? Thanks. It might be helpful to send your configuration as well... Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error building bin assembly
Followup: I can reproduce this error with a very minimal project by using the maven-arcetype-plugin to create a simple project, and then adding the following plugin declaration to the POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2/version configuration descriptorRefs descriptorRefsrc/descriptorRef descriptorRefbin/descriptorRef /descriptorRefs outputDirectory${project.build.directory}/site/downloads/outputDirectory /configuration executions execution phasesite/phase goals goalsingle/goal /goals /execution /executions /plugin With this plugin declaration in place, I get the error when I execute either mvn assembly:single or mvn site. Can anyone provide any clues? Thanks On Nov 10, 2010, at 10:02 AM, Jason Voegele wrote: I am trying to use the pre-defined bin assembly descriptor (descriptorRef) and I am getting an error stating that A tar file cannot include itself. I've included a full stack trace below. Does anyone know what might be wrong? Is there any other information I should include to help diagnose? Thanks. [INFO] Building tar : /Users/jvoegele/projects/terracotta/forge/sparse/tc-maven-plugin/tags/release-1.6.1/target/site/downloads/tc-maven-plugin-1.6.1-bin.tar.gz [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 18.239s [INFO] Finished at: Wed Nov 10 09:37:36 EST 2010 [INFO] Final Memory: 33M/81M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:assembly (downloads) on project tc-maven-plugin: Failed to create assembly: Error creating assembly archive bin: A tar file cannot include itself. - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:assembly (downloads) on project tc-maven-plugin: Failed to create assembly: Error creating assembly archive bin: A tar file cannot include itself. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) 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:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) 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:597) 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: A tar file cannot include itself. at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:468) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) ... 19 more Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating assembly archive bin: A tar file cannot include itself. at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:196) at
RE: building a assembly
Hi, Did you take a look at the Maven Application Assembler Plugin? [1] This will create the zip file you are asking for. Hth, Nick Stolwijk [1] http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ -Original Message- From: Alexander Petri [mailto:[EMAIL PROTECTED] Sent: Wed 2/6/2008 5:09 PM To: users@maven.apache.org Subject: building a assembly Hi, i want to create a zipfile after packaging (for fullinstall) using the assembly plugin which should contain some folders, the jars (dependencies),the main jar(with main.class) and a batchfile to start the application. = it's a cli application the problem is that the zipfile doesn't contain the main jar. How can I put the main jarfile into the zip? Here is my assembly xml for now: ?xml version=1.0 encoding=UTF-8? assembly idmy-src/id formats formatzip/format /formats fileSets fileSet directoryreports/directory /fileSet fileSet directoryoutput/directory /fileSet fileSet directorylog/directory /fileSet /fileSets dependencySets dependencySet scoperuntime/scope outputDirectorylib/outputDirectory /dependencySet /dependencySets /assembly
building a assembly
Hi, i want to create a zipfile after packaging (for fullinstall) using the assembly plugin which should contain some folders, the jars (dependencies),the main jar(with main.class) and a batchfile to start the application. = it's a cli application the problem is that the zipfile doesn't contain the main jar. How can I put the main jarfile into the zip? Here is my assembly xml for now: ?xml version=1.0 encoding=UTF-8? assembly idmy-src/id formats formatzip/format /formats fileSets fileSet directoryreports/directory /fileSet fileSet directoryoutput/directory /fileSet fileSet directorylog/directory /fileSet /fileSets dependencySets dependencySet scoperuntime/scope outputDirectorylib/outputDirectory /dependencySet /dependencySets /assembly
RE: building a assembly
You need to explicitly add the created jar, something like the following works fine for me: fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet -Original Message- From: Alexander Petri [mailto:[EMAIL PROTECTED] Sent: 06 February 2008 16:10 To: users@maven.apache.org Subject: building a assembly Hi, i want to create a zipfile after packaging (for fullinstall) using the assembly plugin which should contain some folders, the jars (dependencies),the main jar(with main.class) and a batchfile to start the application. = it's a cli application the problem is that the zipfile doesn't contain the main jar. How can I put the main jarfile into the zip? Here is my assembly xml for now: ?xml version=1.0 encoding=UTF-8? assembly idmy-src/id formats formatzip/format /formats fileSets fileSet directoryreports/directory /fileSet fileSet directoryoutput/directory /fileSet fileSet directorylog/directory /fileSet /fileSets dependencySets dependencySet scoperuntime/scope outputDirectorylib/outputDirectory /dependencySet /dependencySets /assembly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building custom assembly
Hi, My project is a multi-module project : jwebunit/ |-pom.xml |-jwebunit-commons-tests |-pom.xml |-src/... |-jwebunit-core |-pom.xml |-src/... |-jwebunit-htmlunit-plugin |-pom.xml |-src/... I would like to create 3 packages : - jwebunit-source.zip (easy) - jwebunit-javadoc.zip : contains aggregate Javadoc from jwebunit-core and jwebunit-htmlunit-plugin - jwebunit-bin.zip : contains jwebunit-htmlunit-plugin.jar, jwebunit-core.jar and all htmlunit dependencies (only runtime scope) I think know how to do the first package. Concerning the aggregated javadoc, perhaps after mvn site can I take the file in target/site/javadoc Concerning the last package, I read the example on assembly plugin website, but I don't know how to keep only runtime dependencies in a multi-module project. Thanks Julien This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]