Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-7410

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 31.0.0.Beta1
    • 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-core.

      Example:

      with this simple change:

      $ git diff
      diff --git a/pom.xml b/pom.xml
      index 183d5d7c68..0d3b83bbbb 100644
      --- a/pom.xml
      +++ b/pom.xml
      @@ -2290,7 +2290,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>
      @@ -2306,7 +2306,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.2.Final:build-feature-pack (feature-pack-build) on project wildfly-core-galleon-pack: Failed to resolve org.wildfly.galleon-plugins:wildfly-config-gen:pom:8.0.2.Final: The following artifacts could not be resolved: org.wildfly.galleon-plugins:wildfly-config-gen:pom:8.0.2.Final (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.wildfly.galleon-plugins:wildfly-config-gen:pom:8.0.2.Final 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:
              3 Start watching this issue

                Created:
                Updated: