资源关系-maven-repository-index.properties不存在

问题描述 投票:0回答:1

我正在使用远程artifactory存储库。我将此仓库添加到<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 8Maven的3.2.1想法2017.1.5

java maven intellij-idea settings
1个回答
0
投票

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

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

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

© www.soinside.com 2019 - 2024. All rights reserved.