org.mockserver.maven
Class MockServerRunForkedMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.mockserver.maven.MockServerAbstractMojo
org.mockserver.maven.MockServerRunForkedMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="runForked",
requiresProject=false,
threadSafe=false)
public class MockServerRunForkedMojo- extends MockServerAbstractMojo
Run a forked instance of the MockServer
To run from command line:
mvn -Dmockserver.serverPort="1080" -Dmockserver.proxyPort="1090" -Dmockserver.logLevel="TRACE" org.mock-server:mockserver-maven-plugin:3.11:runForked
- Author:
- jamesdbloom
|
Field Summary |
protected org.apache.maven.shared.artifact.resolve.ArtifactResolver |
artifactResolver
Used to look up Artifacts in the remote repository. |
protected List<org.apache.maven.artifact.Artifact> |
pluginArtifacts
Get a list of artifacts used by this plugin |
protected org.apache.maven.repository.RepositorySystem |
repositorySystem
Used to look up Artifacts in the remote repository. |
| Fields inherited from class org.mockserver.maven.MockServerAbstractMojo |
compileClasspath, dependencies, embeddedJettyHolder, initializationClass, logLevel, pipeLogToConsole, proxyPort, serverPort, skip, testClasspath, timeout |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pluginArtifacts
@Parameter(defaultValue="${plugin.artifacts}",
required=true,
readonly=true)
protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
- Get a list of artifacts used by this plugin
repositorySystem
@Component
protected org.apache.maven.repository.RepositorySystem repositorySystem
- Used to look up Artifacts in the remote repository.
artifactResolver
@Component
protected org.apache.maven.shared.artifact.resolve.ArtifactResolver artifactResolver
- Used to look up Artifacts in the remote repository.
MockServerRunForkedMojo
public MockServerRunForkedMojo()
fileSeparators
public static String fileSeparators(String path)
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2017. All rights reserved.