From f96b12edeee9c89b7f6ee2a2971136d64fd3b780 Mon Sep 17 00:00:00 2001 From: Jean-Francois Denise Date: Mon, 11 Nov 2024 21:43:12 +0100 Subject: [PATCH] [CONVERSION COMMIT] Add back the provision goal --- plugin/pom.xml | 2 +- .../org/wildfly/plugin/provision/ProvisionServerMojo.java | 6 ++++-- .../java/org/wildfly/plugin/provision/ProvisionTest.java | 2 -- .../java/org/wildfly/plugin/provision/ProvisionTest.java | 2 -- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/plugin/pom.xml b/plugin/pom.xml index 05d15e8c..caf62c92 100644 --- a/plugin/pom.xml +++ b/plugin/pom.xml @@ -144,7 +144,7 @@ wildfly-plugin-tools - * + org.wildfly.core * diff --git a/plugin/src/main/java/org/wildfly/plugin/provision/ProvisionServerMojo.java b/plugin/src/main/java/org/wildfly/plugin/provision/ProvisionServerMojo.java index 36aff535..3fa319b3 100644 --- a/plugin/src/main/java/org/wildfly/plugin/provision/ProvisionServerMojo.java +++ b/plugin/src/main/java/org/wildfly/plugin/provision/ProvisionServerMojo.java @@ -8,6 +8,9 @@ import org.apache.maven.plugin.MojoExecutionException; 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.ResolutionScope; /** * Provision a server. @@ -15,8 +18,7 @@ * @author jfdenise * @since 3.0 */ -// @Mojo(name = "provision", requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = -// LifecyclePhase.PACKAGE) +@Mojo(name = "provision", requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PACKAGE) public class ProvisionServerMojo extends AbstractProvisionServerMojo { @Override diff --git a/tests/domain-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java b/tests/domain-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java index 5552d3f3..f07c26ac 100644 --- a/tests/domain-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java +++ b/tests/domain-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java @@ -7,12 +7,10 @@ import java.nio.file.Path; import org.apache.maven.plugin.Mojo; -import org.junit.Ignore; import org.junit.Test; import org.wildfly.plugin.tests.AbstractProvisionConfiguredMojoTestCase; import org.wildfly.plugin.tests.AbstractWildFlyMojoTest; -@Ignore public class ProvisionTest extends AbstractProvisionConfiguredMojoTestCase { public ProvisionTest() { diff --git a/tests/standalone-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java b/tests/standalone-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java index 96435c47..1ea72aa0 100644 --- a/tests/standalone-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java +++ b/tests/standalone-tests/src/test/java/org/wildfly/plugin/provision/ProvisionTest.java @@ -7,12 +7,10 @@ import java.nio.file.Path; import org.apache.maven.plugin.Mojo; -import org.junit.Ignore; import org.junit.Test; import org.wildfly.plugin.tests.AbstractProvisionConfiguredMojoTestCase; import org.wildfly.plugin.tests.AbstractWildFlyMojoTest; -@Ignore public class ProvisionTest extends AbstractProvisionConfiguredMojoTestCase { public ProvisionTest() {