任何人都可以告诉我如何配置maven从https存储库下载jar(例如:https://m2proxy.atlassian.com/repository/public/)。我们可以从http存储库下载jar,但不能从https存储库下载
答案 0 :(得分:0)
我在一分钟前测试过,它运行良好
1)在pom.xml中添加以下存储库
<repositories>
<repository>
<id>https-atlassian</id>
<url>https://m2proxy.atlassian.com/repository/public/</url>
</repository>
</repositories>
2)添加依赖项。我添加了
<dependency>
<groupId>andromda</groupId>
<artifactId>andromda-java</artifactId>
<version>2.1.5</version>
</dependency>
3)在maven安装期间下载没有问题
Downloading: https://m2proxy.atlassian.com/repository/public/andromda/andromda-j
ava/2.1.5/andromda-java-2.1.5.pom
Downloaded: https://m2proxy.atlassian.com/repository/public/andromda/andromda-ja
va/2.1.5/andromda-java-2.1.5.pom (155 B at 0.0 KB/sec)
Downloading: https://m2proxy.atlassian.com/repository/public/andromda/andromda-j
ava/2.1.5/andromda-java-2.1.5.jar
Downloaded: https://m2proxy.atlassian.com/repository/public/andromda/andromda-ja
va/2.1.5/andromda-java-2.1.5.jar (2 KB at 3.0 KB/sec)
答案 1 :(得分:0)
问题得到解决!!我使用了另一个“HTTP”存储库:http://repository.atlassian.com/maven2/并在settings.xml中将其称为“repository”和“pluginRepository”。
感谢您的所有回复