如何配置 dbeaver 代理连接到私有 maven 存储库
how to configue a dbeaver proxy connection to a private maven repository
我在网络上使用内部 maven/artifactory 存储库。
我正在尝试使用 DBeaver 7.1.0 初始化 Oracle 连接。 (不是 eclipse 插件,独立程序)
每次初始化都下载驱动失败。
有错误
Error Resolving Dependencies
Maven artifact 'maven:/com.oracle.database.xml:xmlparserv2:RELEASE' not found
我假设这是因为代理阻止外部访问下载文件。
知道我~/.m2/settings.xml
的内容
<proxies>
<proxy>
<host>myproxy.foo</host>
<port>80</port>
</proxy>
<proxies>
<profiles>
<profile>
...
<repositories>
<repository>
<id>foobar</id>
<name>mystuff</id>
<url>https://my-interal-maven.foo/artifactory/mystuff</url>
正确配置连接以下载文件的步骤是什么?
编辑:我绕过使用maven并手动将JAR复制到设置中,就像@FeodorG
给出的答案
基本上,当试图让驱动程序工作时,它会在
在驱动程序设置 - >“下载”抛出错误解决依赖...
解析依赖项时出错
Maven 工件 'maven:/com.oracle.database.nls:orai18n:RELEASE' 未找到
所以我会去 mvnRepository 中获取那个 jar:
并重复下载失败的每个其他条目
https://mvnrepository.com/artifact/com.oracle.database.nls/orai18n/12.2.0.1
https://mvnrepository.com/artifact/com.oracle.database.xml/xmlparserv2/12.2.0.1
https://mvnrepository.com/artifact/com.oracle.database.xml/xdb6/12.2.0.1
https://mvnrepository.com/artifact/com.oracle.database.nls/orai18n/12.2.0.1
在我的文件系统上用 JAR 替换所有条目后...连接成功了!
嗯,我遇到了同样的问题(公司网络上的各种安全设置问题阻止我设置驱动程序)。
我的解决方法是以某种方式在我的本地驱动器上获取 Oracle 驱动程序 jar 文件,然后我通过转到数据库 --> DBeaver 中的驱动程序管理器来定义我自己的 Oracle 驱动程序。
从那里我定义了一个新的驱动程序,方法是添加一个文件作为指向我本地驱动器上的 Oracle jar 文件驱动程序的指针,然后我单击 Find Class。
它找到了 class 然后我只是填写了默认端口等的一些细节。
然后我创建了一个与我刚刚创建的驱动程序的新连接,输入用户名和密码并且它工作了。
所以,简而言之,我只是将 jar 文件带到我的本地驱动器并创建了一个新的驱动程序和一个新的连接。
这次我使用的是 Windows 10,我在代理后面。
实际上问题不在于配置它(用于代理下载)或 Maven 存储库 URL(可能拼写错误)。
问题是无法接受要保存在 %userprofile%\AppData\Roaming\DBeaverData\drivers\maven\maven-central
文件夹中的驱动程序的文件夹权限。
我只是递归地向 Everyone 授予对 DBeaverData 文件夹的完全权限,但这不是最安全的设置。您可以将“所有人”改为仅您的用户。成功了。
takeown /f %userprofile%\AppData\Roaming\DBeaverData\* /r
icacls %userprofile%\AppData\Roaming\DBeaverData /grant Everyone:F /t
在我的例子中,我有一个代理和一个私有存储库,对我有用的是在 Windows->Preferences->Connections- 中将私有存储库 URL 定义为新数据源- >Drivers->maven 然后点击添加。
我在网络上使用内部 maven/artifactory 存储库。
我正在尝试使用 DBeaver 7.1.0 初始化 Oracle 连接。 (不是 eclipse 插件,独立程序)
每次初始化都下载驱动失败。 有错误
Error Resolving Dependencies
Maven artifact 'maven:/com.oracle.database.xml:xmlparserv2:RELEASE' not found
我假设这是因为代理阻止外部访问下载文件。
知道我~/.m2/settings.xml
的内容
<proxies>
<proxy>
<host>myproxy.foo</host>
<port>80</port>
</proxy>
<proxies>
<profiles>
<profile>
...
<repositories>
<repository>
<id>foobar</id>
<name>mystuff</id>
<url>https://my-interal-maven.foo/artifactory/mystuff</url>
正确配置连接以下载文件的步骤是什么?
编辑:我绕过使用maven并手动将JAR复制到设置中,就像@FeodorG
给出的答案基本上,当试图让驱动程序工作时,它会在 在驱动程序设置 - >“下载”抛出错误解决依赖... 解析依赖项时出错 Maven 工件 'maven:/com.oracle.database.nls:orai18n:RELEASE' 未找到
所以我会去 mvnRepository 中获取那个 jar: 并重复下载失败的每个其他条目
https://mvnrepository.com/artifact/com.oracle.database.nls/orai18n/12.2.0.1
https://mvnrepository.com/artifact/com.oracle.database.xml/xmlparserv2/12.2.0.1
https://mvnrepository.com/artifact/com.oracle.database.xml/xdb6/12.2.0.1
https://mvnrepository.com/artifact/com.oracle.database.nls/orai18n/12.2.0.1
在我的文件系统上用 JAR 替换所有条目后...连接成功了!
嗯,我遇到了同样的问题(公司网络上的各种安全设置问题阻止我设置驱动程序)。 我的解决方法是以某种方式在我的本地驱动器上获取 Oracle 驱动程序 jar 文件,然后我通过转到数据库 --> DBeaver 中的驱动程序管理器来定义我自己的 Oracle 驱动程序。 从那里我定义了一个新的驱动程序,方法是添加一个文件作为指向我本地驱动器上的 Oracle jar 文件驱动程序的指针,然后我单击 Find Class。 它找到了 class 然后我只是填写了默认端口等的一些细节。 然后我创建了一个与我刚刚创建的驱动程序的新连接,输入用户名和密码并且它工作了。 所以,简而言之,我只是将 jar 文件带到我的本地驱动器并创建了一个新的驱动程序和一个新的连接。
这次我使用的是 Windows 10,我在代理后面。 实际上问题不在于配置它(用于代理下载)或 Maven 存储库 URL(可能拼写错误)。
问题是无法接受要保存在 %userprofile%\AppData\Roaming\DBeaverData\drivers\maven\maven-central
文件夹中的驱动程序的文件夹权限。
我只是递归地向 Everyone 授予对 DBeaverData 文件夹的完全权限,但这不是最安全的设置。您可以将“所有人”改为仅您的用户。成功了。
takeown /f %userprofile%\AppData\Roaming\DBeaverData\* /r
icacls %userprofile%\AppData\Roaming\DBeaverData /grant Everyone:F /t
在我的例子中,我有一个代理和一个私有存储库,对我有用的是在 Windows->Preferences->Connections- 中将私有存储库 URL 定义为新数据源- >Drivers->maven 然后点击添加。