Package org.eclipse.tycho.packaging
Interface RepositoryGenerator
public interface RepositoryGenerator
A
RepositoryGenerator is responsible for generate a specific repository format from a set
of items.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptioncreateRepository(List<org.apache.maven.project.MavenProject> projects, RepositoryGenerator.RepositoryConfiguration configuration) Creates a repository from the supplied list of maven projectsdefault booleanisInteresting(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 useconfiguration- the configuration for the resulting repository- Returns:
- the generated repository
- Throws:
IOExceptionorg.apache.maven.plugin.MojoExecutionException- if an internal error occurs while generating the repositoryorg.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:
trueif the project is interesting orfalseotherwise.
-