报错
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springblade.platform:blade-bom:pom:2.6.0.RELEASE from/to maven-default-http-blocker (http://0.0.0.0/)
原因:maven 3.8 后的 nexus 仓库地址不能使用 http,一定要 https
解决办法:
修改 maven 默认 settings 文件
vi /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/MyMaven/conf
注释下面配置
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>