org.apache.maven.lifecycle.LifecycleExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • [INFO] [jar:jar {execution: default-jar}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling JAR Embedded error: Failed to read filesystem attributes for: /home/kuali/KSR1.1Workspace/ks-cfg-dbs/ks-embedded-db/pom.xml [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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.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: Error assembling JAR at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:223) at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:235) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to read filesystem attributes for: /home/kuali/KSR1.1Workspace/ks-cfg-dbs/ks-embedded-db/pom.xml at org.codehaus.plexus.archiver.ArchiveEntry.createFileEntry(ArchiveEntry.java:161) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:374) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:290) at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:487) at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:216) ... 20 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 39 minutes 54 seconds [INFO] Finished at: Sat Mar 26 13:39:22 PDT 2011 [INFO] Final Memory: 53M/1198M
    via by Thomas O'Brien,
  • [INFO] [jar:jar {execution: default-jar}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling JAR Embedded error: Failed to read filesystem attributes for: /home/kuali/KSR1.1Workspace/ks-cfg-dbs/ks-embedded-db/pom.xml [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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.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: Error assembling JAR at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:223) at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:235) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to read filesystem attributes for: /home/kuali/KSR1.1Workspace/ks-cfg-dbs/ks-embedded-db/pom.xml at org.codehaus.plexus.archiver.ArchiveEntry.createFileEntry(ArchiveEntry.java:161) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:374) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:290) at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:487) at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:216) ... 20 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 39 minutes 54 seconds [INFO] Finished at: Sat Mar 26 13:39:22 PDT 2011 [INFO] Final Memory: 53M/1198M
    via by Thomas O'Brien,
  • When running Sonar 1.7 Maven plugin configured wih Clover2 the following error ocurres: {noformat} [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.2:jar' --> [DEBUG] (s) addDefaultSpecificationEntries = true [DEBUG] (s) addDefaultImplementationEntries = true [DEBUG] (s) manifest = org.apache.maven.archiver.ManifestConfiguration@e91a77 [DEBUG] (f) archive = org.apache.maven.archiver.MavenArchiveConfiguration@1c89df9 [DEBUG] (f) classesDirectory = /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/clover/classes [DEBUG] (f) defaultManifestFile = /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/clover/classes/META-INF/MANIFEST.MF [DEBUG] (f) finalName = maven-executor-1.0-beta-2-SNAPSHOT-clover [DEBUG] (f) forceCreation = false [DEBUG] (f) outputDirectory = /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/clover [DEBUG] (f) project = MavenProject: com.marvelution.maven.components:maven-executor:1.0-beta-2-SNAPSHOT @ /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/sonar/pom.xml [DEBUG] (f) useDefaultManifestFile = false [DEBUG] -- end configuration -- [INFO] [jar:jar] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot execute the command com.atlassian.maven.plugins:maven-clover2-plugin::instrument Embedded error: Error assembling JAR /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/sonar/pom.xml isn't a file. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute the command com.atlassian.maven.plugins:maven-clover2-plugin::instrument at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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.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: Cannot execute the command com.atlassian.maven.plugins:maven-clover2-plugin::instrument at org.sonar.maven.SonarMojo.executeMaven(SonarMojo.java:294) at org.sonar.maven.SonarMojo.executeGoals(SonarMojo.java:256) at org.sonar.maven.SonarMojo.execute(SonarMojo.java:115) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 16 more Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1168) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1009) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:627) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.sonar.maven.SonarMavenEmbedder.execute(SonarMavenEmbedder.java:151) at org.sonar.maven.SonarMavenEmbedder.execute(SonarMavenEmbedder.java:115) at org.sonar.maven.SonarMojo.executeMaven(SonarMojo.java:291) ... 20 more Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:225) at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:237) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 32 more Caused by: org.codehaus.plexus.archiver.ArchiverException: /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/sonar/pom.xml isn't a file. at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:300) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:292) at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:338) at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:218) ... 35 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 38 seconds [INFO] Finished at: Mon Mar 30 19:57:24 CEST 2009 [INFO] Final Memory: 12M/254M [INFO] ------------------------------------------------------------------------ {noformat} There is a pom file in the {{target/sonar}} directory, but it is named sonar-pom.xml. With Cobertura the sonar plugin runs without any errors. Clover2 gives no errors when running outside the Sonar plugin.
    via by Mark Rekveld,
  • After upgrading to m2eclipse the assembly goal in one of my modules in my multi-module projhect stopped working: [DEBUG] Adding 68 dependency artifacts. [DEBUG] Adding artifact: net.tipp24.argo.procurement:procurement-common:jar:0.1.0-SNAPSHOT with file: /home/ckutz/procurement/eclipse_ws/argo-procurement/procurement-common/target/classes to assembly location: libs/procurement-common-0.1.0-SNAPSHOT.jar. [DEBUG] Adding file: /home/ckutz/procurement/eclipse_ws/argo-procurement/procurement-common/target/classes to archive location: procurement-server-0.1.0-SNAPSHOT/libs/procurement-common-0.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to create assembly: 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. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create assembly: 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. 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:597) 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 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. 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. 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. at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:308) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:262) at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.addFile(AssemblyProxyArchiver.java:474) at org.apache.maven.plugin.assembly.archive.task.AddArtifactTask.execute(AddArtifactTask.java:188) ... 23 more From the command line and witjh m2eclipse 0.9.6 it still works fine.
    via by Christoph Kutzinski,
  • R.txt isn't a file error when building aar
    via by Mustafa Sezgin,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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.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: Error assembling JAR at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:223) at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:235) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to read filesystem attributes for: /home/kuali/KSR1.1Workspace/ks-cfg-dbs/ks-embedded-db/pom.xml at org.codehaus.plexus.archiver.ArchiveEntry.createFileEntry(ArchiveEntry.java:161) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:374) at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:290) at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:487) at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:216) ... 20 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,