Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-32083

Change pluginRepository id in example-settings.xml to match repository id

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 8.1.0.GA
    • Maven Repository
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      example-settings.xml is bundled within maven-repository.zip deliverable and it looks like this:

      ....
            <repositories>
              <repository>
                <id>jboss-eap-repository</id>
                <url>file:///path/to/repo/jboss-eap-8.1.0.GA-maven-repository/maven-repository</url>
      ....
            <pluginRepositories>
              <pluginRepository>
                <id>jboss-eap-plugin-repository</id>
                <url>file:///path/to/repo/jboss-eap-8.1.0.GA-maven-repository/maven-repository</url>
      ....
            <id>jboss-community-repository</id>
            <repositories>
              <repository>
                <id>jboss-community-repository</id>
                <url>https://repository.jboss.org/nexus/content/groups/public/</url>
      ....
            <pluginRepositories>
              <pluginRepository>
                <id>jboss-community-plugin-repository</id>
                <url>https://repository.jboss.org/nexus/content/groups/public/</url>
      ....
      

      We should use the same ID for repositories using the same URL even if one is in <repositories> and the other in <pluginRepositories>. That no added "-plugin" or "-plugins" in the repo ID.

      In fact because of how Maven internally caches downloaded artifacts - tracking origin by repository ID - it may cause unnecessary pollution of local cache (Maven will download and store duplicate metadata files like maven-metadata-<id>.xml for the same artifacts). It also makes it harder to use mirror (you need to include both IDs in the mirror setting).

              rh-ee-rnovelli Ruben Novelli
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: