org.codehaus.mojo.mrm.plugin
Class AbstractStartMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
          extended by org.codehaus.mojo.mrm.plugin.AbstractStartMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
RunMojo, StartMojo

public abstract class AbstractStartMojo
extends AbstractMRMMojo

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
artifactFactory, artifactResolver, localRepository, mojoExecution, pluginDescriptor, project, remoteArtifactRepositories, remotePluginRepositories, session, skip
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractStartMojo()
           
 
Method Summary
protected  org.codehaus.mojo.mrm.api.maven.ArtifactStore createArtifactStore()
          Creates an artifact store from the repositories configuration.
protected  FileSystemServer createFileSystemServer(org.codehaus.mojo.mrm.api.maven.ArtifactStore artifactStore)
          Creates a file system server from an artifact store.
 
Methods inherited from class org.codehaus.mojo.mrm.plugin.AbstractMRMMojo
createFactoryHelper, createProxyArtifactStore, doExecute, execute
 
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
 

Constructor Detail

AbstractStartMojo

public AbstractStartMojo()
Method Detail

createFileSystemServer

protected FileSystemServer createFileSystemServer(org.codehaus.mojo.mrm.api.maven.ArtifactStore artifactStore)
Creates a file system server from an artifact store.

Parameters:
artifactStore - the artifact store to serve.
Returns:
the file system server.

createArtifactStore

protected org.codehaus.mojo.mrm.api.maven.ArtifactStore createArtifactStore()
                                                                     throws org.apache.maven.plugin.MojoExecutionException
Creates an artifact store from the repositories configuration.

Returns:
an artifact store.
Throws:
org.apache.maven.plugin.MojoExecutionException - if the configuration is invalid.


Copyright © 2009-2011 Codehaus. All Rights Reserved.