maven下载包失败,手动下载塞到maven依赖库中

安装zeppelin,官方有编译好的二进制安装文件,但是编译好的文件里面好多包的版本跟我自己环境下的平台版本不一样,因此不得不手工下载源码,选择合适版本编译。

maven编译需要根据pom文件中的依赖库,来下载很多包,往往遇到连接超时的问题。下面遇到的是yarn-v0.18.1.tar.gz这个包下载不了,重新编译了好几次,还是不行。

[INFO] Zeppelin ........................................... SUCCESS [  6.418 s]
[INFO] Zeppelin: Interpreter .............................. SUCCESS [ 24.307 s]
[INFO] Zeppelin: Zengine .................................. SUCCESS [ 19.701 s]
[INFO] Zeppelin: Display system apis ...................... SUCCESS [ 18.919 s]
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS [01:16 min]
[INFO] Zeppelin: Spark .................................... SUCCESS [ 36.325 s]
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [  2.423 s]
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS [  1.065 s]
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS [  1.054 s]
[INFO] Zeppelin: Livy interpreter ......................... SUCCESS [03:58 min]
[INFO] Zeppelin: HBase interpreter ........................ SUCCESS [ 10.941 s]
[INFO] Zeppelin: Apache Pig Interpreter ................... SUCCESS [ 18.633 s]
[INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [  2.778 s]
[INFO] Zeppelin: JDBC interpreter ......................... SUCCESS [  3.614 s]
[INFO] Zeppelin: File System Interpreters ................. SUCCESS [  7.200 s]
[INFO] Zeppelin: Flink .................................... SUCCESS [ 36.206 s]
[INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [  2.512 s]
[INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [  1.612 s]
[INFO] Zeppelin: Python interpreter ....................... SUCCESS [ 22.347 s]
[INFO] Zeppelin: Lens interpreter ......................... SUCCESS [ 11.241 s]
[INFO] Zeppelin: Apache Cassandra interpreter ............. SUCCESS [02:06 min]
[INFO] Zeppelin: Elasticsearch interpreter ................ SUCCESS [  7.283 s]
[INFO] Zeppelin: BigQuery interpreter ..................... SUCCESS [  2.897 s]
[INFO] Zeppelin: Alluxio interpreter ...................... SUCCESS [  8.580 s]
[INFO] Zeppelin: Scio ..................................... SUCCESS [01:05 min]
[INFO] Zeppelin: web Application .......................... FAILURE [02:06 min]
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:40 min
[INFO] Finished at: 2018-04-19T15:51:21+08:00
[INFO] Final Memory: 381M/1684M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:install-node-and-yarn (install node and yarn) on project zeppelin-web: Could not download Yarn: Could not download https://github.com/yarnpkg/yarn/releases/download/v0.18.1/yarn-v0.18.1.tar.gz: Connect to github-production-release-asset-2e65be.s3.amazonaws.com:443 [github-production-release-asset-2e65be.s3.amazonaws.com/52.216.81.224] failed: Connection timed out: connect -> [Help 1]
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn -rf :zeppelin-web

前面编译都成功了,在zeppelin-web这部失败了,还好,maven可以继续编译。在之前执行的命令后面跟上这个:-rf :zeppelin-web


[INFO] Installing node version v6.9.1
[INFO] Copying node binary from C:\Users\yiming\.m2\repository\com\github\eirslett\node\6.9.1\node-6.9.1-win-x64.exe to C:\Users\yiming\Desktop\小笨鸟\zeppelin\zeppelin-0.7.3\zeppelin-web\node\node.exe
[INFO] Installed node locally.
[INFO] Installing Yarn version v0.18.1
[INFO]
Downloading https://github.com/yarnpkg/yarn/releases/download/v0.18.1/yarn-v0.18.1.tar.gz to C:\Users\yiming\.m2\repository\com\github\eirslett\yarn\0.18.1\yarn-0.18.1.\yarn-v0.18.1.tar.gz

[INFO] No proxies configured

再次运行时会告诉你包会从哪下载到哪。。然后根据这个提示去下载地址手动下载,放到该位置。

再次继续zeppelin-web的编译即可。。。。





你可能感兴趣的:(maven)