You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2021/03/17 10:06:00 UTC

[jira] [Created] (MNG-7120) Packaged artifacts from modules in the same reactor are not available anymore

Guillaume Nodet created MNG-7120:
------------------------------------

             Summary: Packaged artifacts from modules in the same reactor are not available anymore
                 Key: MNG-7120
                 URL: https://issues.apache.org/jira/browse/MNG-7120
             Project: Maven
          Issue Type: Bug
    Affects Versions: 4.0.0-alpha-1
            Reporter: Guillaume Nodet


With the current maven 4 branch, some projects fail when they are not built from the top of the reactor.  This happens when unpacking an artifact using the maven-dependency-plugin.  This is definitely a regression which I suspect is caused by the changes in the reactor.  I'll provide a PR with an IT soon.

{code}
[INFO] --- maven-dependency-plugin:3.1.2:unpack (process-sources) @ camel-spring-xml ---
[INFO] Configured Artifact: org.apache.camel:camel-api:sources:3.9.0-SNAPSHOT:jar
[INFO] Configured Artifact: org.apache.camel:camel-core-model:sources:3.9.0-SNAPSHOT:jar
[INFO] Configured Artifact: org.apache.camel:camel-core-xml:sources:3.9.0-SNAPSHOT:jar
[INFO] Configured Artifact: org.apache.camel:camel-util:sources:3.9.0-SNAPSHOT:jar
[INFO] Unpacking /Users/gnodet/work/git/camel/core/camel-api/target/classes to /Users/gnodet/work/git/camel/components/camel-spring-xml/target/sources/camel-api with includes "**/*" and excludes ""
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.010 s (Wall Clock)
[INFO] Finished at: 2021-03-16T14:40:51+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:unpack (process-sources) on project camel-spring-xml: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:unpack (process-sources) on project camel-spring-xml: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:218)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:151)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:115)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:198)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98.
	at org.apache.maven.plugins.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:257)
	at org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:137)
	at org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.doExecute(UnpackMojo.java:116)
	at org.apache.maven.plugins.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:144)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:136)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
	... 10 common frames omitted
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)