Guillaume Nodet created MNG-7095:
------------------------------------
Summary: Support for parallel builds when resuming
Key: MNG-7095
URL: https://issues.apache.org/jira/browse/MNG-7095
Project: Maven
Issue Type: Task
Affects Versions: 4.0.0, 4.0.0-alpha-1
Reporter: Guillaume Nodet
When performing parallel builds, there's not a single project that can be used
to resume the build from.
The new feature added in MNG-5760 is awesome, but I think it fails short when
using parallel builds.
Example of the build:
{code}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Maven 4.0.0-alpha-1-SNAPSHOT:
[INFO]
[INFO] Apache Maven ....................................... SUCCESS [ 3.365 s]
[INFO] Maven Test Support ................................. SUCCESS [ 2.468 s]
[INFO] Maven Model ........................................ SUCCESS [ 4.547 s]
[INFO] Maven Artifact ..................................... SUCCESS [ 2.933 s]
[INFO] Maven Plugin API ................................... SKIPPED
[INFO] Maven Builder Support .............................. SUCCESS [ 2.432 s]
[INFO] Maven XML .......................................... SUCCESS [ 1.461 s]
[INFO] Maven Model Builder ................................ SKIPPED
[INFO] Maven Settings ..................................... SUCCESS [ 3.332 s]
[INFO] Maven Settings Builder ............................. SKIPPED
[INFO] Maven Repository Metadata Model .................... SUCCESS [ 3.328 s]
[INFO] Maven Artifact Resolver Provider ................... SKIPPED
[INFO] Maven Core ......................................... SKIPPED
[INFO] Maven SLF4J Wrapper ................................ SUCCESS [ 2.386 s]
[INFO] Maven SLF4J Simple Provider ........................ SUCCESS [ 1.466 s]
[INFO] Maven Embedder ..................................... SKIPPED
[INFO] Maven Compat ....................................... SKIPPED
[INFO] Apache Maven Distribution .......................... SKIPPED
[INFO] Maven Wrapper ...................................... SUCCESS [ 2.549 s]
[INFO] Apache Maven Wrapper Distribution .................. FAILURE [ 0.430 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.342 s (Wall Clock)
[INFO] Finished at: 2021-02-08T17:56:42+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check
(rat-check) on project apache-maven-wrapper: Too many files with unapproved
license: 1 See RAT report in:
/Users/gnodet/work/git/maven/apache-maven/target/rat.txt -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.rat:apache-rat-plugin:0.13:check (rat-check) on project
apache-maven-wrapper: Too many files with unapproved license: 1 See RAT report
in: /Users/gnodet/work/git/maven/apache-maven/target/rat.txt
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.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder.lambda$createBuildCallable$0
(MultiThreadedBuilder.java:191)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:628)
at java.lang.Thread.run (Thread.java:834)
Caused by: org.apache.rat.mp.RatCheckException: Too many files with unapproved
license: 1 See RAT report in:
/Users/gnodet/work/git/maven/apache-maven/target/rat.txt
at org.apache.rat.mp.RatCheckMojo.check (RatCheckMojo.java:188)
at org.apache.rat.mp.RatCheckMojo.execute (RatCheckMojo.java:161)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:136)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
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.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder.lambda$createBuildCallable$0
(MultiThreadedBuilder.java:191)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:628)
at java.lang.Thread.run (Thread.java:834)
[ERROR]
[ERROR] Re-run Maven using the '-X' switch to enable full debug logging.
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -r
➜ maven git:(fix-build) ✗ cat target/resume.properties
#Mon Feb 08 17:56:42 CET 2021
resumeFrom=org.apache.maven\:apache-maven-wrapper
➜ maven git:(fix-build) ✗
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)