m0_59494576 2021-06-20 10:36 采纳率: 0%
浏览 341

用Jenkins构建maven build 不连接外网报错,有外网成功执行

+ /usr/local/maven/bin/mvn package -DskipTests -f /var/jenkins_home/workspace/ChinaskillProject
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.piggymetrics:config:1.0.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 14, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:monitoring:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:registry:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:gateway:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:auth-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:account-service:1.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:statistics-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
[FATAL] Non-resolvable parent POM for com.piggymetrics:notification-service:1.0.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10
 @ 
[ERROR] The build could not read 8 projects -> [Help 1]
[ERROR]   
[ERROR]   The project com.piggymetrics:config:1.0.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/config/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:config:1.0.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 14, column 10: Unknown host repo.maven.apache.org: Name or service not known -> [Help 2]
[ERROR]   
[ERROR]   The project com.piggymetrics:monitoring:0.0.1-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/monitoring/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:monitoring:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]   
[ERROR]   The project com.piggymetrics:registry:0.0.1-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/registry/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:registry:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]   
[ERROR]   The project com.piggymetrics:gateway:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/gateway/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:gateway:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]   
[ERROR]   The project com.piggymetrics:auth-service:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/auth-service/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:auth-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]   
[ERROR]   The project com.piggymetrics:account-service:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/account-service/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:account-service:1.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10: Unknown host repo.maven.apache.org -> [Help 2]
[ERROR]   
[ERROR]   The project com.piggymetrics:statistics-service:1.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/statistics-service/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:statistics-service:1.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR]   
[ERROR]   The project com.piggymetrics:notification-service:1.0.0-SNAPSHOT (/var/jenkins_home/workspace/ChinaskillProject/notification-service/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.piggymetrics:notification-service:1.0.0-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.5.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.5.RELEASE/spring-boot-starter-parent-1.3.5.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 13, column 10 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Jenkins 中文社区
 

  • 写回答

2条回答 默认 最新

  • 夜郎king 2022博客之星IT其它领域TOP 12 2022-11-03 20:09
    关注

    没联网的情况下,需要配置一个私服,不然maven打包时不知道依赖的jar包去哪里下载。联网的情况下它会自动去中央仓库下载。建议熟悉一下maven的jar管理模式。

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料