Interface RepositoryGenerator


public interface RepositoryGenerator
A RepositoryGenerator is responsible for generate a specific repository format from a set of items.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createRepository(List<org.apache.maven.project.MavenProject> projects, RepositoryGenerator.RepositoryConfiguration configuration)
    Creates a repository from the supplied list of maven projects
    default boolean
    isInteresting(org.apache.maven.project.MavenProject mavenProject)
    Determines if a given project is interesting for this generator, a generator might be capable of processing specific things and should probably be able to generate some content from such a project, the default implementation includes "jar", "bundle", "eclipse-plugin" and "eclipse-test-plugin" packaged projects as potentially interesting.
  • Method Details

    • createRepository

      File createRepository(List<org.apache.maven.project.MavenProject> projects, RepositoryGenerator.RepositoryConfiguration configuration) throws IOException, org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Creates a repository from the supplied list of maven projects
      Parameters:
      projects - the list of projects to use
      configuration - the configuration for the resulting repository
      Returns:
      the generated repository
      Throws:
      IOException
      org.apache.maven.plugin.MojoExecutionException - if an internal error occurs while generating the repository
      org.apache.maven.plugin.MojoFailureException - if a user configuration error occurs
    • isInteresting

      default boolean isInteresting(org.apache.maven.project.MavenProject mavenProject)
      Determines if a given project is interesting for this generator, a generator might be capable of processing specific things and should probably be able to generate some content from such a project, the default implementation includes "jar", "bundle", "eclipse-plugin" and "eclipse-test-plugin" packaged projects as potentially interesting.
      Parameters:
      mavenProject -
      Returns:
      true if the project is interesting or false otherwise.