Problem parsing POM?


(David Ray) #1

Could not parse POM https://oss.sonatype.org/content/repositories/snapshots/org/numenta/htm.java/0.6.9-SNAPSHOT/htm.java-0.6.9-20160909.112902-3.pom

Works fine in the browser, gradle can’t parse it when executing:

gradle check

Please help?


(Lance Java) #2
<dependency>
   <artifactId>algorithmfoundry-shade-culled-1.3</artifactId>
   <scope>compile</scope>
</dependency>

This dependency doesn’t have a <groupId> or a <version>


(David Ray) #3

That comes from a locally defined repository as such:

repositories {
    // Use 'maven central' for resolving your dependencies.
    // You can declare any Maven/Ivy/file repository here.
    mavenCentral()

    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
    maven { url "./libs" }
    
}

…where “./libs” is where the in project repo lives. Gradle and Maven both build it fine in the host project (“htm.java”), but the gradle file from this dependent project which uses that project is the one I’m having problems with.

EDIT: Thanks! I just had the “name” attribute but no group and artifact. It built fine in the host project so it went unnoticed.

Thanks again!
David