resource nexus-maven-repository-index.properties不存在

yftpprvb  于 2021-07-09  发布在  Java
关注(0)|答案(1)|浏览(590)

我用的是远程人工回购。我将此repo添加到 <user>/.m2/ 文件夹:

<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->存储库”页面的idea设置中,我看到了我的artifactoryrepo的url。但当我点击“更新”按钮时,我得到了错误信息 java.lang.RuntimeException: java.io.FileNotFoundException: Resource nexus-maven-repository-index.properties does not exist 如何解决这个问题?
windows 8 maven 3.2.1 idea 2017.1.5版

ghhkc1vu

ghhkc1vu1#

您是否尝试过为导入程序缓冲内存,然后重新启动intellij(为我工作)
构建、执行、部署→ 构建工具→ Maven→ 导入→ 导入程序的vm选项
https://stackoverflow.com/a/42394767/2242239

相关问题