This is an automated email from the ASF dual-hosted git repository. sseifert pushed a commit to branch feature/SLING-13038-process-tracking-configurable in repository https://gitbox.apache.org/repos/asf/sling-feature-launcher-maven-plugin.git
commit c1fc2161a10b244eff08916e649fda636f4c2625 Author: Stefan Seifert <[email protected]> AuthorDate: Fri Dec 19 13:08:48 2025 +0100 SLING-13038 Make process tracker configurable --- .../org/apache/sling/maven/feature/launcher/StartMojo.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java b/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java index a678c72..26a7c41 100644 --- a/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java +++ b/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java @@ -81,6 +81,12 @@ public class StartMojo extends AbstractMojo { @Parameter(required = true, defaultValue = "1.3.4") private String featureLauncherVersion; + /** + * Whether to track the Sling instance process and forcibly stop it when the build ends, when it was not stopped properly. + */ + @Parameter(required = true, defaultValue = "true") + private boolean trackProcess; + // TODO: extract this field into common parent class /** * List of {@link Launch} objects to start. Each is having the following format: @@ -337,7 +343,9 @@ public class StartMojo extends AbstractMojo { + launch.getStartTimeoutSeconds() + " seconds."); } - processes.startTracking(launch.getId(), process); + if (trackProcess) { + processes.startTracking(launch.getId(), process); + } } } catch (NoSuchArchiverException
