Package org.codehaus.mojo.mrm.plugin
Class RunMojo
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.RunMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="run",
requiresProject=false,
requiresDirectInvocation=true,
threadSafe=true)
public class RunMojo
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 for manual testing.
-
Field Summary
Fields inherited from class org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
archetypeManager, artifactFactory, artifactResolver, localRepository, mojoExecution, pluginDescriptor, project, remoteArtifactRepositories, remotePluginRepositories, session, skipFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms this plugin's action.protected StringWhen set, this points to the to the location from where the settings file can be downloaded.Methods inherited from class org.codehaus.mojo.mrm.plugin.AbstractStartMojo
createArtifactStore, createFileSystemServerMethods inherited from class org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
createFactoryHelper, createProxyArtifactStore, execute, getMojoExecutionMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RunMojo
public RunMojo()
-
-
Method Details
-
doExecute
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionPerforms this plugin's action.- Specified by:
doExecutein 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.
-
getSettingsServletPath
When set, this points to the to the location from where the settings file can be downloaded.- Overrides:
getSettingsServletPathin classAbstractStartMojo- Returns:
- the servlet path to the settings file of
null
-