gpt4 book ai didi

用于 XML 验证的 Eclipse 代理设置

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

在 (K)Ubuntu Linux 9.10 下运行 Eclipse 3.5 (= Galileo)。具有 HTTP 代理的企业环境。

我有我的首选项|一般|网络连接全部设置为HTTP、主机、端口、需要身份验证和凭据。

Eclipse 在 Eclipse 启动时询问我的主密码。所以我已经提供了我能想到的所有授权,但似乎还不够。

代理访问工作正常(并且不会打扰我),例如来自 Internet 的软件更新和 SVN 更新,但 XML DTD 验证显然失败。 Eclipse 会弹出一个对话框,显示我的代理主机并要求输入代理密码。我希望它从我设置的代理凭据中获取此信息。这种情况经常发生,所以对我来说很烦人。有什么办法可以缓解这种情况吗?

最佳答案

您是否尝试通过 手动 Active Provider 而不是 native 使用 Eclipse 访问互联网(用于更新或 XML 验证)?

http://web.archive.org/web/20120325061201/http://img294.i_mageshack.us/img294/4977/eclipsemanual2.png

Eclipse 不应在开始时提示您输入密码,并且 XML 验证应该可以工作。
bug 82037很久以前就解决了,当前的开发设置(如 MOTODEV Studio for Android Installation )建议手动设置代理。

When you are on a network that requires proxy authentication, MOTODEV Studio updates will only occur if the proxy information (including username and password) are manually set for both HTTP and HTTPS connections (in Preferences, under General > Network Connections).
This also affects the download and install of the Android SDK during the installation process. If during installation you are asked if you want to change the connection preferences, do so. Change the active provider to "Manual" and provide host, port, user, and password values for both the HTTP and HTTPS schemes.

刚刚测试过:它确实提示我输入我的凭据......一次。我第一次尝试验证如下所示的 xml 文件。
但之后,它就不再要求我提供这些凭据。

<!DOCTYPE catalog
PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public">

<group xml:base="http://www.oasis-open.org/docbook/xml/4.1.2/">
<public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
uri="docbookx.dtd"/>
<public publicId="-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN"
uri="dbnotnx.mod"/>
<public publicId="-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN"
uri="dbcentx.mod"/>
<public publicId="-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN"
uri="dbpoolx.mod"/>
<public publicId="-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN"
uri="dbhierx.mod"/>
<public publicId="-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN"
uri="dbgenent.mod"/>
<public publicId="-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN"
uri="calstblx.dtd"/>
</group>

<public publicId="-//OASIS//DTD DocBook MathML Module V1.0//EN"
uri="http://www.oasis-open.org/docbook/xml/mathml/1.0/dbmathml.dtd"/>

<nextCatalog catalog="stylesheets.xml"/>

</catalog>
<小时/>

基本上,Eclipse 需要您完整的互联网凭据才能随时验证 xml 文件:代理、端口、用户名、密码。
但是当你必须存储密码时,那么 master password comes in play ,并将在每个 Eclipse session 中被要求(一次):

The information stored in the secure storage (say, a CVS password) is encrypted with a "master" password. The master password is retrieved from a "password provider module". There are three password provider modules included in the SDK:

  • the default UI module in the org.eclipse.equinox.security.ui
  • the Windows-specific module in the org.eclipse.equinox.security.win32.x86
  • the Mac-specific module in the org.eclipse.equinox.security.macosx

关于用于 XML 验证的 Eclipse 代理设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2177764/

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