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

rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git


The following commit(s) were added to refs/heads/master by this push:
     new 67c6e7a  MEECROWAVE-242 ensure reloadGoals is not set when 
watcherBouncing is set > 0
67c6e7a is described below

commit 67c6e7a44b9486461fc492a8198641b8494f6619
Author: Romain Manni-Bucau <rmannibu...@gmail.com>
AuthorDate: Thu Apr 23 12:13:24 2020 +0200

    MEECROWAVE-242 ensure reloadGoals is not set when watcherBouncing is set > 0
---
 .../main/java/org/apache/meecrowave/maven/MeecrowaveRunMojo.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/meecrowave-maven-plugin/src/main/java/org/apache/meecrowave/maven/MeecrowaveRunMojo.java
 
b/meecrowave-maven-plugin/src/main/java/org/apache/meecrowave/maven/MeecrowaveRunMojo.java
index 6bf16e2..378c356 100644
--- 
a/meecrowave-maven-plugin/src/main/java/org/apache/meecrowave/maven/MeecrowaveRunMojo.java
+++ 
b/meecrowave-maven-plugin/src/main/java/org/apache/meecrowave/maven/MeecrowaveRunMojo.java
@@ -308,7 +308,7 @@ public class MeecrowaveRunMojo extends AbstractMojo {
     @Parameter(property = "meecrowave.jaxws-support", defaultValue = "true")
     private boolean jaxwsSupportIfAvailable;
 
-    @Parameter(property = "meecrowave.reload-goals", defaultValue = 
"process-classes")
+    @Parameter(property = "meecrowave.reload-goals")
     private List<String> reloadGoals; // todo: add watching on 
project.build.directory?
 
     @Parameter(property = "meecrowave.default-ssl-hostconfig-name")
@@ -329,6 +329,13 @@ public class MeecrowaveRunMojo extends AbstractMojo {
             getLog().warn("Mojo skipped");
             return;
         }
+        if (watcherBouncing <= 0 && (reloadGoals == null || 
reloadGoals.isEmpty())) {
+            try {
+                reloadGoals = singletonList("process-classes");
+            } catch (final RuntimeException re) { // mojo in read only mode
+                // no-op
+            }
+        }
         logConfigurationErrors();
 
         final Map<String, String> originalSystemProps;

Reply via email to