tuchun [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for com.tc:devops-java-sample:0.0.1-SNAPSHOT: Cannot access repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/) in offline mode and the artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE has not been downloaded from it before. and ‘parent.relativePath’ points at no local POM @ line 5, column 13 我想换成阿里的maven仓库,在configuration/setting.xml添加了阿里maven中央仓库,发现不起作用,还是使用默认maven仓库。setting.xml配置如下: <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>repo.jenkins-ci.org</id> <url>https://repo.jenkins-ci.org/public/</url> <mirrorOf>m.g.o-public</mirrorOf> </mirror> </mirrors>
tuchun runzexia 好的,可以了。还有一个问题就是,到时候怎么换成公司的私有maven仓库,发现setting.xml换成阿里的仓库不起作用,还是去默认的仓库下载。更换后的setting.xml配置如下: <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <!–<mirror> <id>repo.jenkins-ci.org</id> <url>https://repo.jenkins-ci.org/public/</url> <mirrorOf>m.g.o-public</mirrorOf> </mirror>–> </mirrors>