【问题标题】:How to correctly setup snapshots deeplearning4j如何正确设置快照 deeplearning4j
【发布时间】:2019-11-08 07:08:58
【问题描述】:

我尝试在 intellij 中为快照重新配置我的项目,请问为什么我的 pom.xml 无法根据 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>

&lt;releases&gt;..&lt;/releases&gt;&lt;snapshots&gt;..&lt;snapshots/&gt; 用红色标出,带有 Element 'releases' cannot have character [children], because the type's content type is element-only. 错误

【问题讨论】:

  • 原来IDE是罪魁祸首,导入了maven依赖项,下载了一段时间现在一切正常,语法错误仍然存​​在,但没关系。

标签: maven intellij-idea snapshot deeplearning4j


【解决方案1】:

我拿了你的 sn-p 并尝试在本地构建项目。 我还没有看到这种错误, 标签中的所有内容看起来都是有效的。 我为构建您的项目添加的唯一内容是&lt;version&gt;${nd4j.version}&lt;/version&gt; 标记到

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

请您进行上述更改并仔细检查您的pom.xml 文件语法。

【讨论】:

  • 您是否点击了问题中的 pom.xml 链接,这已经存在
  • 是的,我从问题中的链接中获取了您的 pom.xml。
猜你喜欢
  • 2022-01-14
  • 2023-03-17
  • 2017-03-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-30
相关资源
最近更新 更多