Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1487

Repositories indexed by the Hawtio Maven Indexer Plugin should be easily configured

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.2
    • None
    • Hawtio
    • None
    • % %

      Currently the Hawtio Maven Indexer Plugin only has the following repositories configured:

      http://repository.jboss.org/nexus/content/repositories/ea
      http://repo1.maven.org/maven2

      https://github.com/hawtio/hawtio/blob/master/hawtio-maven-indexer/src/main/java/io/hawt/maven/indexer/MavenIndexerFacade.java#L69-69

       private String[] repositories = {
                  "http://repository.jboss.org/nexus/content/repositories/ea@id=ea.jboss..release.repo",
                  "http://repo1.maven.org/maven2@central"
          };
      

      It appears there was configuration that was stubbed out to allow these repositories to be configurable but this was commented out:

      https://github.com/hawtio/hawtio/blob/master/hawtio-maven-indexer/src/main/resources/OSGI-INF/blueprint/osgi.xml#L10-10

       <bean id="mavenIndexer" class="io.hawt.maven.indexer.AsyncMavenIndexerFacadeFactory" init-method="init"
              destroy-method="destroy" scope="singleton">
          <property name="indexDirectory" value="${indexDir}"/>
      <!--
          <property name="repositories" value="${hawtio.maven.index.repos}"/>
      -->
        </bean>
      

      It would be nice if the Maven Indexer plugin repositories could be configured in the Hawtio UI as part of the preferences.

      If at all possible, it might be nice if the Maven Indexer could detect the repositories that container is configured to use in etc/org.ops4j.pax.url.mvn.cfg. Understanding we don't want to introduce dependencies specific to the container.

            pantinor@redhat.com Paolo Antinori
            rhn-support-sjavurek Susan Javurek
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: