Package org.codehaus.mojo.mrm.plugin
Class StartMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
org.codehaus.mojo.mrm.plugin.AbstractStartMojo
org.codehaus.mojo.mrm.plugin.StartMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="start",
defaultPhase=PRE_INTEGRATION_TEST,
requiresProject=false,
threadSafe=true)
public class StartMojo
extends AbstractStartMojo
This goal is used in-situ on a Maven project to allow integration tests based on the Maven Invoker to use a custom
settings.xml
and still work behind a proxy.- Author:
- Stephen Connolly Starts a mock repository manager as part of a maven build for use by integration tests.
-
Field Summary
Fields inherited from class org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
mojoExecution, pluginDescriptor, project, proxyRepo, session, skip
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs this plugin's action.protected static String
getFileSystemServerKey
(org.apache.maven.plugin.MojoExecution mojoExecution) Methods inherited from class org.codehaus.mojo.mrm.plugin.AbstractStartMojo
createArtifactStore, createFileSystemServer
Methods inherited from class org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
createProxyArtifactStore, execute, getMojoExecution
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
StartMojo
@Inject public StartMojo(FactoryHelper factoryHelper, @Named("proxyRepo") ArtifactStoreFactory proxyRepo)
-
-
Method Details
-
doExecute
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractMRMMojo
Performs this plugin's action.- Specified by:
doExecute
in classAbstractMRMMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
- If there is an exception occuring during the execution of the plugin.org.apache.maven.plugin.MojoFailureException
- If there is an exception occuring during the execution of the plugin.
-
getFileSystemServerKey
-