如何阻止 http 重定向破坏我的 Maven 存储库?
我使用 m2eclipse 插件,并使用 Boigo 提供的 wifi 服务乘坐渡轮上下班。当我尝试通过渡轮上的 http 访问任何内容时,如果我尚未登录,则任何请求都会被重定向到登录屏幕。问题是,如果出于任何原因 Eclipse 决定在我登录之前刷新其 Maven 依赖项,我会收到充满 Boingo 重定向响应的“jars”和“poms”,这会阻止我的构建成功。除了确保在登录 wifi 服务之前永远不要启动 Eclipse 之外,还有其他解决方案吗?
I use the m2eclipse plugin, and I commute on a ferry with wifi service provided by Boigo. When I try to access anything via http on the ferry, if I haven't already logged in any request gets redirected to a login screen. The problem is that if for any reason eclipse decides to refresh its maven dependencies before I've logged in, I get 'jars' and 'poms' full of the Boingo redirect response which then prevents my build from succeeding. Is there any solution to this problem aside from making sure never to launch Eclipse until after I've logged into the wifi service?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到“首选项”->“Maven”并取消选中启动时下载存储库索引更新。必要时您可以选择离线检查。
Go to Preferences->Maven and uncheck Download repository index updates on startup. At a pinch you can select Offline check.