diff --git a/src/main/java/de/thetaphi/forbiddenapis/maven/CheckMojo.java b/src/main/java/de/thetaphi/forbiddenapis/maven/CheckMojo.java index 53f1fd2d..92768d97 100644 --- a/src/main/java/de/thetaphi/forbiddenapis/maven/CheckMojo.java +++ b/src/main/java/de/thetaphi/forbiddenapis/maven/CheckMojo.java @@ -33,7 +33,7 @@ * In most cases its enough to rename the goal on update, the older v1.0 properties are still available. * @since 1.2 */ -@Mojo(name = "check", threadSafe = true, requiresProject = true, requiresDependencyResolution = ResolutionScope.COMPILE, defaultPhase = LifecyclePhase.PROCESS_CLASSES) +@Mojo(name = "check", threadSafe = true, requiresProject = true, requiresDependencyResolution = ResolutionScope.COMPILE, defaultPhase = LifecyclePhase.VERIFY) public final class CheckMojo extends AbstractCheckMojo { /** diff --git a/src/main/java/de/thetaphi/forbiddenapis/maven/TestCheckMojo.java b/src/main/java/de/thetaphi/forbiddenapis/maven/TestCheckMojo.java index 98da5482..105ddd86 100644 --- a/src/main/java/de/thetaphi/forbiddenapis/maven/TestCheckMojo.java +++ b/src/main/java/de/thetaphi/forbiddenapis/maven/TestCheckMojo.java @@ -30,7 +30,7 @@ * At least one signature must be given, using any of the corresponding optional parameters. * @since 1.2 */ -@Mojo(name = "testCheck", threadSafe = true, requiresProject = true, requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES) +@Mojo(name = "testCheck", threadSafe = true, requiresProject = true, requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.VERIFY) public final class TestCheckMojo extends AbstractCheckMojo { /**