Unable to retrieve artifacts from secure Nexus repository connection with Eclipse [message #1848431] |
Wed, 01 December 2021 15:38  |
Eclipse User |
|
|
|
I hope this is the right forum section for this, I apologize if it's not. Please move this to the correct area if necessary.
---
This is the issue I'm having.
Eclipse is not able to resolve artifact dependencies on LAN through SSL connection to Nexus with all certs installed to java runtime. When I try to do a "Maven->Update Project...", I get a generated XXXX.lastUpdated for the artifact in my m2 directory as follows.
https\://WWW/nexus/content/groups/public/.error=Could not transfer artifact
YYY:pom:VVV from/to AAA-nexus (https://WWW/public): Hostname HOSTNAME not verified: certificate: sha256/
HASH_HERE DN: EMAILADDRESS=ZZZ, CN=ZZZ, OU=ZZZ, O=ZZZ, C=US subjectAltNames: [] and 'parent.relativePath' points at wrong local POM
Note: the WWW, YYY, VVV, AAA, HOSTNAME, ZZZ, and HASH_HERE are just placeholders for the real content I'm not providing.
I presume "Maven->Update Project..." uses "Window->Preferences->Maven->Installations" default selection when doing this. If this is true, then the only thing that I'm clueless on is what version of java is being used.
I'm using Eclipse 2020-12. From Eclipse configuration, I see java.home is at this location from my PATH directory.
PATH\apps\eclipse\jee-2020-12\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre
The only Java runtime and JDK I have on my Windows 10 machine is at the following location.
PATH\apps\java\jdk1.8.0_281
For these 2 JDK/JRE, I installed the PSrootCA and PS-IssuingCA Nexus certificates from Chrome web browser as base 64 encoded. After all of this, I restarted Eclipse and tried to do "Maven->Update Project..." but it fails and shows dependency errors from failed connection. I can get around this by opening a DOS shell and running "mvn clean install" on the project, go back to Eclipse and do a "Maven->Update Project...", and the dependency resolves (as long as I don't have it force redownload the artifacts).
I checked my firewalls and there is no block on in and out ports for Eclipse or Maven. Also, I disable my virus scanner and left pretty much everything open to see if this was an issue but it wasn't.
So, I'm stumped. Why am I having issues in Eclipse with this? What am I missing?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03187 seconds