Interface RepositoryGenerator


public interface RepositoryGenerator
A RepositoryGenerator is responsible for generate a specific repository format from a set of items.
  • 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.