简体   繁体   English

由于某种原因找不到我的 Springboot 依赖项

[英]My Springboot Dependency can't be found for some reason

So I'm using Intellij and I am connecting to the internet via a proxy server.所以我正在使用 Intellij 并且我通过代理服务器连接到互联网。 For some reason on my regular computer connected via wireless router it all works out but this one isn't working.出于某种原因,在我通过无线路由器连接的普通计算机上,一切正常,但这个不起作用。 I tried reloading the maven project, but to no avail.我尝试重新加载 Maven 项目,但无济于事。

For some reason pom.xml can't find my dependencies, and that's probably why.出于某种原因, pom.xml 找不到我的依赖项,这可能就是原因。

This is the pom.xml: Top of pom.xml Bottom of pom.xml这是 pom.xml: pom.xml 的顶部 pom.xml 的底部

This is the problems tab in the console: Here这是控制台中的问题选项卡:这里

If you are using IntelliJ's embedded Maven, configure your proxy as per this [link] 1 .如果您使用的是 IntelliJ 的嵌入式 Maven,请按照此 [link] 1配置您的代理

You can copy the default settings.xml file from Maven install ${maven.home}/conf/settings.xml to ${user.home}/.m2/settings.xml.您可以将默认 settings.xml文件从 Maven install ${maven.home}/conf/settings.xml复制到 ${user.home}/.m2/settings.xml。

Then, add a proxy section to your settings file as in explained in this guide .然后,按照本指南中的说明,将代理部分添加到您的设置文件中。

Also, check with your company's infrastructure responsible that you are actually allowed to connect to Maven Central, for example at my current company we have a well-known brand firewall that, by default, blocks it .此外,请与您公司的基础设施负责人确认您实际上被允许连接到 Maven Central,例如在我目前的公司,我们有一个知名品牌的防火墙,默认情况下会阻止它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM