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

Unable to build server sources when using different ID for repository and pluginRepository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 38.0.0.Final
    • Build System
    • None
    • ---
    • ---

      When build is configured to use different repository ID for repository and pluginRepository definitions (in pom.xml or in settings.xml), we are not able to build WildFly sources.

      Example:

      with this simple change:

      $ git diff
      diff --git a/pom.xml b/pom.xml
      index cc409dc531..6c251369fd 100644
      --- a/pom.xml
      +++ b/pom.xml
      @@ -901,7 +901,7 @@
                       <enabled>true</enabled>
                       <updatePolicy>never</updatePolicy>
                   </snapshots>
      -            <id>jboss-public-repository-group</id>
      +            <id>jboss-public-repository-group-dependencies</id>
                   <name>JBoss Public Repository Group</name>
                   <url>${maven.repository.url}</url>
                   <layout>default</layout>
      @@ -916,7 +916,7 @@
                   <snapshots>
                       <enabled>true</enabled>
                   </snapshots>
      -            <id>jboss-public-repository-group</id>
      +            <id>jboss-public-repository-group-plugins</id>
                   <name>JBoss Public Repository Group</name>
                   <url>${maven.repository.url}</url>
               </pluginRepository>
      

      I will get:

      $ mvn -Dmaven.repo.local=/tmp/localrepo clean install -DskipTests
      ...
      [ERROR] Failed to execute goal org.wildfly.galleon-plugins:wildfly-galleon-maven-plugin:8.0.1.Final:build-feature-pack (feature-pack-build) on project wildfly-ee-galleon-pack: Failed to resolve org.jboss:jboss-parent:pom:26: The following artifacts could not be resolved: org.jboss:jboss-parent:pom:26 (present, but unavailable): Cannot access jboss-public-repository-group-dependencies (https://repository.jboss.org/nexus/content/groups/public/) in offline mode and the artifact org.jboss:jboss-parent:pom:26 has not been downloaded from it before. -> [Help 1]
      

              jdenise@redhat.com Jean Francois Denise
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: