You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/09/26 21:15:39 UTC

(maven-verifier) branch master updated: Document ExecutorRequest.toBuilder() for reusing a request

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-verifier.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ac9c59  Document ExecutorRequest.toBuilder() for reusing a request
3ac9c59 is described below

commit 3ac9c596ce33afed1405ad3c3107fdc584780294
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sat Sep 26 23:09:54 2026 +0200

    Document ExecutorRequest.toBuilder() for reusing a request
---
 MIGRATION.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MIGRATION.md b/MIGRATION.md
index b031a27..daa5489 100644
--- a/MIGRATION.md
+++ b/MIGRATION.md
@@ -162,7 +162,7 @@ try (EmbeddedMavenExecutor executor = new EmbeddedMavenExecutor(mavenHome)) { ..
 
 | maven-verifier Concept | maven-executor Equivalent |
 |------------------------|---------------------------|
-| `new Verifier(baseDir)` | `ExecutorRequest.mavenBuilder().cwd(baseDir).build()` |
+| `new Verifier(baseDir)` | `ExecutorRequest.mavenBuilder().cwd(baseDir).build()`. A built request cannot be changed; to run again with different arguments or properties, derive a new one with `request.toBuilder()` instead of reconfiguring the Verifier between runs |
 | `verifier.addCliArgument(arg)` | `.argument(arg)` or `.arguments(arg1, arg2, ...)` on the builder |
 | `verifier.setMavenDebug(true)` | Add `-X` to arguments |
 | `verifier.setAutoclean(false)` | Manage clean goal manually in the arguments list |