Class ObrIndex

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.felix.obrplugin.ObrIndex
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="index", requiresProject=false) public final class ObrIndex extends org.apache.maven.plugin.AbstractMojo
Index the content of a maven repository using OBR
  • Field Details

    • obrRepository

      @Parameter(property="obrRepository") private String obrRepository
      OBR Repository.
    • urlTemplate

      @Parameter(property="urlTemplate") private String urlTemplate
      Template for urls
    • mavenRepository

      @Parameter(property="mavenRepository") private String mavenRepository
      The repository to index
    • localRepository

      @Parameter(defaultValue="${localRepository}", readonly=true, required=true) private org.apache.maven.artifact.repository.ArtifactRepository localRepository
      Local Repository.
    • filter

      private final FileFilter filter
  • Constructor Details

    • ObrIndex

      public ObrIndex()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • doTemplate

      protected void doTemplate(URI root, File path, org.apache.felix.bundlerepository.impl.ResourceImpl resource) throws IOException, URISyntaxException
      Throws:
      IOException
      URISyntaxException
    • trim

      private String trim(String prefix, String path)
    • findAllJars

      private void findAllJars(File mainRoot, List<File> files)