Problem parsing POM?

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?

<dependency>
   <artifactId>algorithmfoundry-shade-culled-1.3</artifactId>
   <scope>compile</scope>
</dependency>

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

1 Like

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