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

sseifert pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-feature-launcher-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new a5dbb87  SLING-13038 Make process tracker configurable (#28)
a5dbb87 is described below

commit a5dbb873d67188afa06af3fd1b5150e92fa59975
Author: Stefan Seifert <[email protected]>
AuthorDate: Fri Dec 19 13:19:08 2025 +0100

    SLING-13038 Make process tracker configurable (#28)
---
 .../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

Reply via email to