Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19077

Add maven central to archetype poms that declared JBoss Nexus as a repository

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 32.0.0.Final
    • None
    • None
    • None

      For any of our archetypes that generate a project with repositiories/pluginRepositories pom sections that list JBoss Nexus, add maven central as well, listed before JBoss Nexus.

      We need to list JBoss Nexus as a repository in any pom that includes provisioning WildFly as one of its build steps. This is because not all artifacts that are provisioned in a WildFly installation are obtainable from maven central.

      But the large majority of artifacts are available in central, and in general maven central seems to have faster and more reliable repository infrastructure, so it should be the preferred option.

      Per https://maven.apache.org/guides/mini/guide-multiple-repositories.html, section "Repository Order", assuming the user's own settings.xml doesn't say otherwise if the project pom lists JBoss Nexus but doesn't list maven central before it, then maven central will be lower priority than JBoss Nexus. (The instruction to use maven central repo at all comes from item 2.C, the "Super POM", which is essentially a base POM built into Maven itself.)

            chaowan@redhat.com Chao Wang
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: