一、场景
在用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