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
Direct Known Subclasses:
RunMojo, StartMojo

public abstract class AbstractStartMojo extends AbstractMRMMojo
Common base class for the mojos that start a repository.
Since:
1.0
  • Constructor Details

    • AbstractStartMojo

      protected AbstractStartMojo(FactoryHelper factoryHelper, ArtifactStoreFactory proxyRepo)
      Creates a new instance
      Parameters:
      factoryHelper - injected FactoryHelper instance
      proxyRepo - injected proxyHelper instance
  • Method Details

    • createFileSystemServer

      protected FileSystemServer createFileSystemServer(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 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.