资源nexus-maven-repository-index.properties不存在

时间:2017-07-14 14:31:51

标签: java maven intellij-idea settings

我正在使用远程神器回购。 我将此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>

在&#34;构建工具中的构思设置中 - &gt; Maven - &gt;库&#34;页面我看到我的神器回购的网址。但是当我点击&#34;更新&#34;按钮,我收到错误消息

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

如何解决这个问题?

Windows 8 Maven 3.2.1 想法2017.1.5

1 个答案:

答案 0 :(得分:0)

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

构建,执行,部署→构建工具→Maven→导入→导入程序的VM选项

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