org.mockserver.maven.MockServerStopMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-maven-plugin Show documentation
Show all versions of mockserver-maven-plugin Show documentation
A maven plugin to start and stop the MockServer
package org.mockserver.maven;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
/**
* Stop the MockServer in the verify phase of the build after any integration tests have completed
*
* @author jamesdbloom
*/
@Mojo(name = "stop", defaultPhase = LifecyclePhase.VERIFY)
public class MockServerStopMojo extends MockServerAbstractMojo {
public void execute() {
if (skip) {
getLog().info("Skipping plugin execution");
} else {
getLog().info("Stopping the MockServer");
getLocalMockServerInstance().stop();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy