From 13a958c034903252c155fae9ec3b6712f6c5e941 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Thu, 10 Sep 2015 00:10:53 +0200 Subject: [PATCH] Switch default Maven lifecycle phase to "verify" --- src/main/java/de/thetaphi/forbiddenapis/maven/CheckMojo.java | 2 +- .../java/de/thetaphi/forbiddenapis/maven/TestCheckMojo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { /**