Parse error POM for Drools on Maven Central

I’m pretty new to gradle, so this could be user error, but I’m trying to build a project with Drools 6.2 and keep getting this error:

    > Could not resolve org.kie:kie-api:6.2.0.Final.
  Required by:
      1:1:1
   > Could not resolve org.kie:kie-api:6.2.0.Final.
      > Could not parse POM http://repo1.maven.org/maven2/org/kie/kie-api/6.2.0.Final/kie-api-6.2.0.Final.pom
         > Could not resolve org.kie:kie-api-parent:6.2.0.Final.
            > Could not resolve org.kie:kie-api-parent:6.2.0.Final.
               > Could not parse POM http://repo1.maven.org/maven2/org/kie/kie-api-parent/6.2.0.Final/kie-api-parent-6.2.0.Final.pom
                  > Could not resolve org.kie:kie-parent-with-dependencies:6.2.0.Final.
                     > Could not resolve org.kie:kie-parent-with-dependencies:6.2.0.Final.
                        > Could not parse POM http://repo1.maven.org/maven2/org/kie/kie-parent-with-dependencies/6.2.0.Final/kie-parent-with-dependencies-6.2.0.Final.pom
                           > Could not find org.jboss.dashboard-builder:dashboard-builder-bom:6.2.0.Final.
                             Searched in the following locations:
                                 http://repo1.maven.org/maven2/org/jboss/dashboard-builder/dashboard-builder-bom/6.2.0.Final/dashboard-builder-bom-6.2.0.Final.pom
                                 http://repo1.maven.org/maven2/org/jboss/dashboard-builder/dashboard-builder-bom/6.2.0.Final/dashboard-builder-bom-6.2.0.Final.jar
                                 http://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/dashboard-builder/dashboard-builder-bom/6.2.0.Final/dashboard-builder-bom-6.2.0.Final.jar
> Could not resolve org.drools:drools-core:6.2.0.Final.
  Required by:
      1:1:1
   > Could not resolve org.drools:drools-core:6.2.0.Final.
      > Could not parse POM http://repo1.maven.org/maven2/org/drools/drools-core/6.2.0.Final/drools-core-6.2.0.Final.pom
         > Could not resolve org.drools:drools-multiproject:6.2.0.Final.
            > Could not resolve org.drools:drools-multiproject:6.2.0.Final.
               > Could not parse POM http://repo1.maven.org/maven2/org/drools/drools-multiproject/6.2.0.Final/drools-multiproject-6.2.0.Final.pom
                  > Could not resolve org.kie:kie-parent-with-dependencies:6.2.0.Final.
                     > Could not resolve org.kie:kie-parent-with-dependencies:6.2.0.Final.
                        > Could not parse POM http://repo1.maven.org/maven2/org/kie/kie-parent-with-dependencies/6.2.0.Final/kie-parent-with-dependencies-6.2.0.Final.pom
                           > Could not find org.jboss.dashboard-builder:dashboard-builder-bom:6.2.0.Final.
> Could not resolve org.drools:drools-compiler:6.2.0.Final.
  Required by:
      1:1:1
   > Could not resolve org.drools:drools-compiler:6.2.0.Final.
      > Could not parse POM http://repo1.maven.org/maven2/org/drools/drools-compiler/6.2.0.Final/drools-compiler-6.2.0.Final.pom
         > Could not resolve org.drools:drools-multiproject:6.2.0.Final.
            > Could not resolve org.drools:drools-multiproject:6.2.0.Final.
               > Could not parse POM http://repo1.maven.org/maven2/org/drools/drools-multiproject/6.2.0.Final/drools-multiproject-6.2.0.Final.pom
                  > Could not resolve org.kie:kie-parent-with-dependencies:6.2.0.Final.
                     > Could not resolve org.kie:kie-parent-with-dependencies:6.2.0.Final.
                        > Could not parse POM http://repo1.maven.org/maven2/org/kie/kie-parent-with-dependencies/6.2.0.Final/kie-parent-with-dependencies-6.2.0.Final.pom
                           > Could not find org.jboss.dashboard-builder:dashboard-builder-bom:6.2.0.Final.

My gradle.build looks like this:

apply plugin: 'java'
apply plugin: 'eclipse'

group = '1'
version = '1'

description = ""

repositories {
    mavenCentral()
}
ext {
 droolsVersion = '6.2.0.Final'
}
dependencies {
 compile "org.kie:kie-api:$droolsVersion"
 compile "org.drools:drools-core:$droolsVersion"
 compile "org.drools:drools-compiler:$droolsVersion"
}

I’ve also tried:

repositories {
  maven {
    url 'http://repo1.maven.org/maven2'
    artifactUrls 'http://repository.jboss.org/nexus/content/groups/public-jboss'
  }
}

And I get the same error.

Works fine for me with Gradle 2.4. What version of Gradle are you using?

This is my repositories configuration:

repositories {
    mavenCentral()
    
    maven {
        url 'http://repository.jboss.org/nexus/content/groups/public-jboss'
    }
}

I’m using 2.4 as well. I fixed it by using the following:

repositories {
  maven {
    name 'central'
    url 'http://repo1.maven.org/maven2'
  }
  maven {
    name 'jboss'
    url 'http://repository.jboss.org/nexus/content/groups/public-jboss'
  }
}