gpt4 book ai didi

eclipse - Eclipse Settings.xml 中的代理配置

转载 作者:行者123 更新时间:2023-12-02 17:55:12 24 4
gpt4 key购买 nike

"Failure to transfer org.apache.maven.plugins:maven-failsafe-plugin:pom:2.16 from http://repo.maven.apache.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 org.apache.maven.plugins:maven-failsafe-
plugin:pom:2.16 from/to central (http://repo.maven.apache.org/maven2): proxy.example.com"

我在 pom 标签中收到上述错误。我搜索了一下,发现这是由于代理设置问题造成的。但whatismyip.com 显示“未检测到代理”。

问题 1:我仍然可以使用代理吗?如果是的话如何获取代理信息。

我了解到 users>home>.m2>settings.xml 需要使用代理进行更新。例如:

<proxies>
<proxy>
<id>example-proxy</id>
<active>true</active>
<protocol>http</protocol>
<username>tomcat</username>
<password>tomcat</password>
<host>proxy.example.com</host>
<port>8008</port>
<nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
</proxy>
</proxies>

问题 2:在此,我应该用什么来替换标签中的情况,或者在哪里可以找到特定于我自己的信息。

问题3:用户>home>.m2>settings.xml之间是否有任何关联 eclipse window>preferences>general>network Connections>Active Provider(Manual )>http.我需要在两个地方更新相同的信息吗?

最佳答案

Question 1: Still could I be behind proxy? If yes how to get the information about proxy.

假设您使用Windows:

  1. 触发器运行命令:按Win+R,然后输入inetcpl.cpl ,好的。
  2. 切换Connections Tab 并按 Lan settings按钮。
  3. 记下“代理服务器”部分中的地址和端口。

Question 2: In this what do I substitute for my case in tag or where can I find information that is specific to myself.

替换 <host><port>在你的settings.xml使用第 3 步数据。

Question 3: Is there any correlation between users>home>.m2>settings.xml and eclipse window>preferences>general>network Connections>Active Provider(Manual)>http. Do I need to update the same information in both places.

不。它们是不同的。 Eclipse 中最有效的是Native 网络连接模式:Window > Preferences > General > Network Connections > Active Provider > Native 。这使得 Eclipse 使用您 native 浏览器的设置(Windows 中为 IE)。

关于eclipse - Eclipse Settings.xml 中的代理配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29046903/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com