maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Digana <tibordig...@apache.org>
Subject Re: Maven Assembly Plugin 3.1.0 : Error adding file to archive \target\classes isn't a file.
Date Tue, 27 Mar 2018 07:52:03 GMT
There is a similar issue in our Jira
https://issues.apache.org/jira/browse/MASSEMBLY-411
Nobody has seen this? Any opinion about this or workaround?
Everything would help!

On Mon, Mar 26, 2018 at 9:21 PM, Tibor Digana <tibordigana@apache.org>
wrote:

> I have a specific problem with Maven Assembly Plugin to run during (mvn
> release:perform).
> If I run the build (mvn install) the plugin works as expected.
>
> I've got this error while cutting release:
>
> Failed to execute goal org.apache.maven.plugins:
> maven-assembly-plugin:3.1.0:single (web-archive-h2-integration-tests) on
> project audit-server: Failed to create assembly: Error adding file
> 'com.scheidtbachmann.shared.audit:audit-domain:jar:without-validation:3.0.0-RC1'
> to archive: E:\vcs\gitlab\release\release-3.0.0-RC1\target\checkout\audit-domain\target\classes
> isn't a file.
>
> Have you seen such error?
> Do you know any workaround?
>
>
>     [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-assembly-plugin:3.1.0:single (web-archive-h2-integration-tests) on
> project audit-server: Failed to create assembly: Error adding file
> 'com.scheidtbachmann.shared.audit:audit-domain:jar:without-validation:3.0.0-RC1'
> to archive:
>     org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-assembly-plugin:3.1.0:single
> (web-archive-h2-integration-tests) on project audit-server: Failed to
> create assembly: Error adding file 'com.scheidtbachmann.shared.
> audit:audit-doma
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:213)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:154)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:146)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
> buildProject(LifecycleModuleBuilder.java:117)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
> buildProject(LifecycleModuleBuilder.java:81)
>         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:309)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>         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.MojoExecutionException: Failed to
> create assembly: Error adding file 'com.scheidtbachmann.shared.
> audit:audit-domain:jar:without-validation:3.0.0-RC1' to archive:
> E:\vcs\gitlab\release\release-3.0.0-RC1\target\checkout\audit-domain\target\classes
> isn't a
>         at org.apache.maven.plugins.assembly.mojos.
> AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:532)
>         at org.apache.maven.plugins.assembly.mojos.
> SingleAssemblyMojo.execute(SingleAssemblyMojo.java:61)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
> DefaultBuildPluginManager.java:134)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:208)
>         ... 20 more
>     Caused by: org.apache.maven.plugins.assembly.archive.ArchiveCreationException:
> Error adding file 'com.scheidtbachmann.shared.audit:audit-domain:jar:without-validation:3.0.0-RC1'
> to archive: E:\vcs\gitlab\release\release-3.0.0-RC1\target\checkout\audit-domain\target\classes
> isn't a file.
>         at org.apache.maven.plugins.assembly.archive.task.
> AddArtifactTask.asFile(AddArtifactTask.java:180)
>         at org.apache.maven.plugins.assembly.archive.task.
> AddArtifactTask.execute(AddArtifactTask.java:132)
>         at org.apache.maven.plugins.assembly.archive.task.
> AddDependencySetsTask.addNormalArtifact(AddDependencySetsTask.java:263)
>         at org.apache.maven.plugins.assembly.archive.task.
> AddDependencySetsTask.addDependencySet(AddDependencySetsTask.java:175)
>         at org.apache.maven.plugins.assembly.archive.task.
> AddDependencySetsTask.execute(AddDependencySetsTask.java:120)
>         at org.apache.maven.plugins.assembly.archive.phase.
> DependencySetAssemblyPhase.execute(DependencySetAssemblyPhase.java:104)
>         at org.apache.maven.plugins.assembly.archive.
> DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:181)
>         at org.apache.maven.plugins.assembly.mojos.
> AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:478)
>         ... 23 more
>     Caused by: org.codehaus.plexus.archiver.ArchiverException:
> E:\vcs\gitlab\release\release-3.0.0-RC1\target\checkout\audit-domain\target\classes
> isn't a file.
>         at org.codehaus.plexus.archiver.AbstractArchiver.addFile(
> AbstractArchiver.java:442)
>         at org.codehaus.plexus.archiver.AbstractArchiver.addFile(
> AbstractArchiver.java:369)
>         at org.apache.maven.plugins.assembly.archive.archiver.
> AssemblyProxyArchiver.addFile(AssemblyProxyArchiver.java:425)
>         at org.apache.maven.plugins.assembly.archive.task.
> AddArtifactTask.asFile(AddArtifactTask.java:175)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message