无法通过ant请求Maven依赖项

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

[在ANT项目上使用Ubuntu 18.04。看来maven最近要求人们发出https请求而不是http请求,但是我不确定如何更改此配置。 OSX上的一位朋友尚未遇到此问题。按照错误消息中的链接将我带到此页面。

https://support.sonatype.com/hc/en-us/articles/360041287334

enter image description here

maven https ant dependency-management ivy
1个回答
0
投票

您可以更新pom.xml文件上的存储库链接。看起来像这样

    <repository>
        <id>central</id>
        <url>http://repo1.maven.org/maven2/</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>

将URL更改为https以解决此问题。

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