告诉gradle绕过依赖检查 [英] Tell gradle to bypass dependency checks

查看:179
本文介绍了告诉gradle绕过依赖检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在客户端,位于防火墙后面。我试图编译,但Gradle不断尝试检查我的依赖关系。企业防火墙明确阻止Maven下载,所以我的构建失败。现在我已经编译过了,所以依赖关系已经存在于我的[user] /。gradle文件夹中,但是它已经超过24小时了,所以gradle正在尝试做它的日常让我们检查回购并确保没有任何东西改变。

是否有命令开关或任何即时只是不在这里告诉gradle绕过此版本检查并简单编译代码的东西?我甚至会对一个命令开关感到满意,因为我不在乎依赖性解决失败,无论如何编译。

试试

试试 - 离线命令行开关。


I am at a clients site, behind a firewall. Im trying to compile but gradle keeps trying to check my dependencies. The corporate firewall explicitly blocks maven downloads so my build is failing. Now I have compiled before, so the dependencies do already exist in my [user]/.gradle folder, but its been more than 24 hours so gradle is trying to do its daily "lets check the repo and make sure nothing changed stuff."

Is there a command switch or anything that im just simply not seeing here to tell gradle to bypass this version check and simply compile the code? I would even be happy with a command switch that says I don't care if dependency resolution failed, compile anyways.

解决方案

Try the --offline command line switch.

这篇关于告诉gradle绕过依赖检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆