Package org.codehaus.mojo.mrm.plugin
Class AbstractStartMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
org.codehaus.mojo.mrm.plugin.AbstractStartMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
Common base class for the mojos that start a repository.
- Since:
- 1.0
-
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
ModifierConstructorDescriptionprotected
AbstractStartMojo
(FactoryHelper factoryHelper, ArtifactStoreFactory proxyRepo) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionprotected ArtifactStore
Creates an artifact store from therepositories
configuration.protected FileSystemServer
createFileSystemServer
(ArtifactStore artifactStore) Creates a file system server from an artifact store.Methods inherited from class org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
createProxyArtifactStore, doExecute, execute, getMojoExecution
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractStartMojo
Creates a new instance- Parameters:
factoryHelper
- injectedFactoryHelper
instanceproxyRepo
- injected proxyHelper instance
-
-
Method Details
-
createFileSystemServer
Creates a file system server from an artifact store.- Parameters:
artifactStore
- the artifact store to serve.- Returns:
- the file system server.
-
createArtifactStore
Creates an artifact store from therepositories
configuration.- Returns:
- an artifact store.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the configuration is invalid.
-