Home > Failed To > Failed To Create Assembly Error Adding File Isn't A File

Failed To Create Assembly Error Adding File Isn't A File

Contents

They should now be fixed, and if not, we need to reconfigure the jobs to use private-to-executor Maven local repos. (here, another build probably deleted the jar while this one was Reload to refresh your session. For reference, here's the salient part of Khatami's pom.xml: maven-assembly-plugin src/main/assembly/src.xml ${project.groupId}.Main jar-with-dependencies and the full src/main/assembly/src.xml: dist if you do mvn clean compile package assembly:single it will build successfully. Check This Out

Full console: http://hudson.magnolia-cms.com/view/X/job/magnolia-module-commenting/670/console Example - Commenting failing with error: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to create assembly: Error adding file 'info.magnolia:magnolia-module-standard-templating-kit:jar:2.0' to archive: /usr/local/hudson/maven-local-repo/info/magnolia/magnolia-module-standard-templating-kit/2.0/magnolia-module-standard-templating-kit-2.0.jar isn't a file. Reload to refresh your session. Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Please see what I mean here. find more info

Failed To Create Assembly Error Adding File Isn't A File

Not the answer you're looking for? Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating assembly archive withdep: Problem creating jar: jar:file:/opt/bamboo-agent-home/xml-data/build-dir/PROJ-PLAN-JOB/target/xyz-1.0.0-SNAPSHOT.jar!/instrumentation.ser at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:190) ... In other words you need to maintain two areas, the dependencies as well as the descriptor. See http://jira.codehaus.org/browse/MNGECLIPSE-1201 Hide Permalink Christoph Kutzinski added a comment - 06/May/09 06:44 Is there any activity on this issue?

How do I explain that this is a terrible idea? Hot Network Questions Game of Life, a shorter story Removing elements from an array that are in another array Logical fallacy: X is bad, Y is worse, thus X is not Reload to refresh your session. Maven Assembly Plugin Example at org.apache.maven.plugin.assembly.archive.task.AddArtifactTask.execute(AddArtifactTask.java:193) at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.addDependencySet(AddDependencySetsTask.java:177) at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.execute(AddDependencySetsTask.java:116) at org.apache.maven.plugin.assembly.archive.phase.DependencySetAssemblyPhase.execute(DependencySetAssemblyPhase.java:74) at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:129) at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:322) ... 18 more Caused by: org.codehaus.plexus.archiver.ArchiverException: /home/ckutz/procurement/eclipse_ws/argo-procurement/procurement-common/target/classes isn't a file.

Can you check couple of things so we can understand the problem better? Error Reading Assemblies: No Assembly Descriptors Found Apart from that it is sometimes also usefull having supplemental files into such distribution packages as well. Igor Fedorenko-3 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: "Failed to create assembly" using the plugin There was click The Assembly Descriptor File Smell If we remember back to the maven-assembly-plugin descriptor which looks like this: Assembly DescriptorGitHub1 2 3 4 5 6 7 8 9 10 11 12 13

Link is : http://maven.apache.org/archetype/maven-archetype-plugin/examples/generate-batch.html Ex: This is a command I use to create a maven archetype for one of my projects: mvn -B archetype:generate \-DarchetypeGroupId=org.apache.maven.archetypes \-DgroupId=com.weather.mobile.ios.automation.tenday \-DartifactId=IphoneTenDayAutomation The groupID creates the Maven-shade-plugin Eugene Kuleshov Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: "Failed to create assembly" using the plugin Sara, This This will simplify the descriptor dramatically like this: Assembly Descriptor for reactor usageGitHub1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 The Obvious Solution Let us assume having two modules which you like to package into the final zip distribution archive.

  1. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 394 Star 4,041 Fork 823 thinkaurelius/titan Code Issues 129 Pull requests 37 Projects
  2. Try JIRA - bug tracking software for your team.
  3. From command line or from inside an IDE> –uncaught_exceptions Jul 18 '11 at 18:07 Command line.
  4. Daniel Lipp created issue - 09/Mar/12 8:19 AM Daniel Lipp made changes - 09/Mar/12 8:20 AM Field Original Value New Value Summary Failed to create assembly: Error adding file ' to
  5. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 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:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  6. Game of Life, a shorter story Is the mass of an individual star almost constant throughout its life?

Error Reading Assemblies: No Assembly Descriptors Found

If you need the project's class file included in the assembly, you can use a to include directory target/classes. Is caused because the project artifact (com.carepilot.khatami:khatami:jar:1.0-SNAPSHOT) has not been packaged yet, but is part of the assembly's . Failed To Create Assembly Error Adding File Isn't A File Caused by: org.apache.maven.plugin.PluginExecutionException: Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single failed. Mojoexecutionexception In Maven From that project, I am inheriting a jar project that has an assembly descriptor attached to the package phase, via the assembly plugin.

This is not a bug in the assembly plugin, it's a limitation of the overall build system. his comment is here or [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (make-assembly) on project xyz: Failed to create assembly: Error creating assembly archive withdep: Problem creating jar: jar:file:/opt/bamboo-agent-home/xml-data/build-dir/PROJ-PLAN-JOB/target/xyz-1.0.0-SNAPSHOT.jar!/instrumentation.ser -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute Maven will calculate the reactor build order automatically. Make space between rows constant What does a well diversified self-managed investment portfolio look like? Maven Package With Dependencies

Also, if possible try setting up your maven projects via the terminal/command prompt as is displayed on the apache website and see if it works. SUCCESS [0.947s] [INFO] Packaging Test : Distribution ..................... This riddle could be extremely useful What kind of bicycle clamps are these? this contact form This will bring you to use the maven-assembly-plugin with an appropriate assembly descriptor like this: Assembly Descriptor 1 2 3 4 5 6 7 8 9 10 11 12 13 14

What are Imperial officers wearing here? Caused by: java.lang.NullPointerException at org.codehaus.plexus.components.io.resources.PlexusIoURLResource.getContents(PlexusIoURLResource.java:38) ... Is there any job that can't be automated?

Yes No Thanks for your feedback!

Caused by: java.io.IOException: jar:file:/opt/bamboo-agent-home/xml-data/build-dir/PROJ-PLAN-JOB/target/xyz-1.0.0-SNAPSHOT.jar!/instrumentation.ser at org.codehaus.plexus.components.io.resources.PlexusIoURLResource.getContents(PlexusIoURLResource.java:38) ... You signed out in another tab or window. Just specifying -Pjre6 does not disable the jre7 profile that is enabled by default. $ mvn -N help:active-profiles -Pjre6 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Titan: Distributed Graph The Order Smell The first smell can be found if you change the order of the modules in the parent pom file from this: Original Module OrderGitHub1 2 3 4 5

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 adding file 'net.tipp24.argo.procurement:procurement-common:jar:0.1.0-SNAPSHOT' to archive: /home/ckutz/procurement/eclipse_ws/argo-procurement/procurement-common/target/classes isn't a file. Does anyone have faced this issue?, is there a known workaround?Thanks a lot,Carlos Alegria Follow-Ups: Re: [m2e-users] problem with assembly on a multimodule project with interdependencies From: Igor Fedorenko Prev by In case when your original goals are: mvn clean they should be changed to: mvn clean clover:setup clover:aggregate clover:clover Notes The NullPointerException thrown navigate here What could I look for?

You signed in with another tab or window. They should now be fixed, and if not, we need to reconfigure the jobs to use private-to-executor Maven local repos. (here, another build probably deleted the jar while this one was at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) ... When I try to package this project, I am getting the following error:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5:single (make-assembly) on project child-a: Failed to create assembly: Error adding file 'a.group.id:dep-a:jar:0.0.1-SNAPSHOT' to

Show Christoph Kutzinski added a comment - 06/May/09 06:44 Is there any activity on this issue?