From 731fbc3964a7cb220d2a477fd6cc6908e1404f40 Mon Sep 17 00:00:00 2001 From: Vincent Fuchs Date: Mon, 5 Feb 2024 22:22:58 -0500 Subject: [PATCH] Revert "fixing build warnings : using annotation rather than javadoc to configure the plugin" This reverts commit 89c2de1321136ad50938f38b521050dfdef4248c. --- .../commons/plugin/maven/ArchUnitMojo.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/societegenerale/commons/plugin/maven/ArchUnitMojo.java b/src/main/java/com/societegenerale/commons/plugin/maven/ArchUnitMojo.java index aea09f0..463d53d 100644 --- a/src/main/java/com/societegenerale/commons/plugin/maven/ArchUnitMojo.java +++ b/src/main/java/com/societegenerale/commons/plugin/maven/ArchUnitMojo.java @@ -17,7 +17,6 @@ import org.apache.maven.artifact.DependencyResolutionRequiredException; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.plugins.annotations.ResolutionScope; @@ -26,10 +25,13 @@ import static java.net.URLClassLoader.newInstance; import static java.util.Collections.emptyList; -@Mojo(name = "arch-test", - requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, - defaultPhase = LifecyclePhase.PROCESS_CLASSES, - configurator = "include-project-dependencies") +/** + * @goal generate + * @phase process-classes + * @configurator include-project-dependencies + * @requiresDependencyResolution compile+runtime + */ +@Mojo(name = "arch-test", requiresDependencyResolution = ResolutionScope.TEST) public class ArchUnitMojo extends AbstractMojo { /** * Skips all processing performed by this plugin.