一、场景
在用maven对 hadoop,spark等进行源码编译的时候,经常会遇到编译报错。以下为一些解决办法。
二、报错与分析排查:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project spark-yarn_2.11: Failed to resolve dependencies for one or more projects in the reactor. Reason: Unable to get dependency information for com.google.inject.extensions:guice-servlet:jar:3.0: Failed to retrieve POM for com.google.inject.extensions:guice-servlet:jar:3.0: Failure to transfer com.google.inject.extensions:guice-servlet:pom:3.0 from https://repo1.maven.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 com.google.inject.extensions:guice-servlet:pom:3.0 from/to central (https://repo1.maven.org/maven2): Connection reset
[ERROR] com.google.inject.extensions:guice-servlet:jar:3.0
在用maven对 hadoop,spark等进行源码编译的时候,经常会遇到编译报错。以下为一些解决办法。
二、报错与分析排查:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project spark-yarn_2.11: Failed to resolve dependencies for one or more projects in the reactor. Reason: Unable to get dependency information for com.google.inject.extensions:guice-servlet:jar:3.0: Failed to retrieve POM for com.google.inject.extensions:guice-servlet:jar:3.0: Failure to transfer com.google.inject.extensions:guice-servlet:pom:3.0 from https://repo1.maven.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 com.google.inject.extensions:guice-servlet:pom:3.0 from/to central (https://repo1.maven.org/maven2): Connection reset
[ERROR] com.google.inject.extensions:guice-servlet:jar:3.0

本文介绍了在使用Maven进行项目编译时遇到的问题,详细解析了报错的原因,并提供了通过配置阿里云仓库来解决依赖下载失败的方法。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



