0

I tried re-configuring my project for snapshots in intellij, please why is my pom.xml not working according to the documentation

<repositories>
    <repository>
        <id>snapshots-repo</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        <releases>
                <enabled>false</enabled>
        </releases>
        <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
        </snapshots>
    </repository>
</repositories>

<releases>..</releases> and <snapshots>..<snapshots/> are outlined in red with a Element 'releases' cannot have character [children], because the type's content type is element-only. error

linker
  • 821
  • 1
  • 8
  • 20
  • turned out the IDE was the culprit, imported maven dependencies, download took a while everything is working now, the syntax error is still there but that's fine. – linker Nov 12 '19 at 04:50

1 Answers1

0

I took your snippet and tried to build the project locally. I haven't seen such kind of error, everything in tag looks valid. The only thing that I have added to build you project is <version>${nd4j.version}</version> tag to

<dependency>
    <groupId>org.nd4j</groupId>
    <artifactId>${nd4j.backend}</artifactId>
</dependency>

Could you please, make provided above changes and double check your pom.xml file syntax.

sshepel
  • 880
  • 1
  • 9
  • 16