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

      public AbstractStartMojo()
  • 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.
    • getSettingsServletPath

      protected String 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

      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.