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
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 TypeMethodDescriptionprotected ArtifactStoreCreates an artifact store from therepositoriesconfiguration.protected FileSystemServercreateFileSystemServer(ArtifactStore artifactStore) Creates a file system server from an artifact store.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.AbstractMRMMojo
createFactoryHelper, createProxyArtifactStore, doExecute, execute, getMojoExecutionMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractStartMojo
public AbstractStartMojo()
-
-
Method Details
-
createFileSystemServer
Creates a file system server from an artifact store.- Parameters:
artifactStore- the artifact store to serve.- Returns:
- the file system server.
-
getSettingsServletPath
When set, this points to the to the location from where the settings file can be downloaded.- Returns:
- the servlet path to the settings file of
null
-
createArtifactStore
Creates an artifact store from therepositoriesconfiguration.- Returns:
- an artifact store.
- Throws:
org.apache.maven.plugin.MojoExecutionException- if the configuration is invalid.
-