Replies: 1 comment 1 reply
-
|
DBeaver CE stores its Maven/P2 repository configuration in the 1. Silent install (Windows): # Download and install silently
Start-Process -FilePath "dbeaver-ce-latest-x86_64-setup.exe" -ArgumentList "/S" -Wait2. Configure custom Maven repos — edit the workspace preferences file: $prefsPath = "$env:APPDATA\DBeaverData\workspace6\.metadata\.plugins\org.jkiss.dbeaver.core\dbeaver.ini"
# Or for global driver settings:
$driversPath = "$env:APPDATA\DBeaverData\workspace6\.metadata\.plugins\org.jkiss.dbeaver.core\drivers.xml"3. For authenticated Maven repos, you can create a
4. Alternatively, pre-download the JDBC drivers and configure local paths: $driversDir = "$env:APPDATA\DBeaverData\drivers"
New-Item -Path $driversDir -ItemType Directory -Force
Copy-Item "your-driver.jar" -Destination $driversDirThen configure the driver path in DBeaver's driver manager to point to the local JAR. This approach avoids the need for Maven authentication entirely during DBeaver runtime. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am working on a Powershell script to download and install DBeaver CE automatically, and point it to our company's internal Maven repository mirrors. So far I've been able to download and expand the release archive (.ZIP), start it once by command line to initialize the user workspace folders, and then copy in new
maven-repositories.xmlfiles pointing to our repos.The problem is that our repos require authentication, with userid and identity token. I can get those in my script, but putting them into the XML files does not seem to work -- DBeaver is still prompting for the ID and password. I saw in the source that DBeaver expects the password to be encrypted, so I tried doing so based on some old code in the Git history, but it still doesn't work.
In addition to the fact that DBeaver is asking for the id and password, I can see an IOException in the debug log, where it is trying to connect to our private mirrors. Unfortunately, the exception message is simply "null".
I could, of course, instruct each user to go into the Driver settings and fill in their ID and token manually, but I'd much rather have it fully automated if possible. Has anyone tried doing something like this? Is there a better way I could prefill the authentication info?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions