Skip to content

Commit 4ea0f0e

Browse files
committed
multi-module livereload ( jooby:run) bug #1384
1 parent 63269ab commit 4ea0f0e

File tree

1 file changed

+5
-4
lines changed
  • modules/jooby-maven-plugin/src/main/java/io/jooby/maven

1 file changed

+5
-4
lines changed

modules/jooby-maven-plugin/src/main/java/io/jooby/maven/RunMojo.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@
1919
import org.apache.maven.plugin.MojoFailureException;
2020
import org.apache.maven.plugins.annotations.Component;
2121
import org.apache.maven.plugins.annotations.Execute;
22-
import org.apache.maven.plugins.annotations.LifecyclePhase;
2322
import org.apache.maven.plugins.annotations.Mojo;
2423
import org.apache.maven.plugins.annotations.Parameter;
25-
import org.apache.maven.plugins.annotations.ResolutionScope;
2624
import org.apache.maven.project.DefaultDependencyResolutionRequest;
2725
import org.apache.maven.project.DependencyResolutionException;
2826
import org.apache.maven.project.DependencyResolutionRequest;
@@ -42,14 +40,17 @@
4240
import java.util.function.BiConsumer;
4341
import java.util.stream.Collectors;
4442

43+
import static org.apache.maven.plugins.annotations.LifecyclePhase.PROCESS_CLASSES;
44+
import static org.apache.maven.plugins.annotations.ResolutionScope.COMPILE_PLUS_RUNTIME;
45+
4546
/**
4647
* Maven plugin for jooby run.
4748
*
4849
* @author edgar
4950
* @since 2.0.0
5051
*/
51-
@Mojo(name = "run", threadSafe = true, requiresDependencyResolution = ResolutionScope.TEST, aggregator = true)
52-
@Execute(phase = LifecyclePhase.TEST_COMPILE)
52+
@Mojo(name = "run", threadSafe = true, requiresDependencyResolution = COMPILE_PLUS_RUNTIME, aggregator = true)
53+
@Execute(phase = PROCESS_CLASSES)
5354
public class RunMojo extends AbstractMojo {
5455

5556
static {

0 commit comments

Comments
 (0)