【问题标题】:Resource nexus-maven-repository-index.properties does not exist资源 nexus-maven-repository-index.properties 不存在
【发布时间】:2017-12-19 16:54:13
【问题描述】:

我正在使用远程 artifactory 存储库。 我将此 repo 添加到 <user>/.m2/ 文件夹中的 settings.xml 文件中:

<settings>
    <mirrors>
        <mirror>
            <id>artifactory</id>
            <name>artifactory</name>
            <url>http://example.com/artifactory/repo</url>
            <mirrorOf>external:*</mirrorOf>
        </mirror>
    </mirrors>
    <profiles>
        <profile>
            <id>artifactory</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>snapshots</id>
                    <name>snapshots-only</name>
                    <url>http://example.com/artifactory/snapshots-only</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
</settings>

在“构建工具 -> Maven -> 存储库”页面的想法设置中,我看到了指向我的工件存储库的 url。但是当我点击“更新”按钮时,我收到错误消息

java.lang.RuntimeException: java.io.FileNotFoundException: Resource nexus-maven-repository-index.properties does not exist

如何解决这个问题?

Windows 8 Maven 3.2.1 创意2017.1.5

【问题讨论】:

  • 在问我的问题之前,我正在研究谷歌页面。我找到了这个页面,但它对我没有帮助
  • 您需要什么帮助?您的存储库不支持索引,因此唯一的选择是禁用通知。

标签: java maven intellij-idea settings


【解决方案1】:

您是否尝试过为导入程序增加内存然后重新启动 IntelliJ? (为我工作)

构建、执行、部署 → 构建工具 → Maven → 导入 → 导入器的 VM 选项

https://stackoverflow.com/a/42394767/2242239

【讨论】:

    猜你喜欢
    • 2016-03-10
    • 1970-01-01
    • 2014-11-25
    • 1970-01-01
    • 2014-06-14
    • 2017-05-17
    • 2014-10-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多