Skip to content
Advertisement

Personal computer failed to access maven central

I have a PC that installed with gaming app like Steam or GOG but in Windows config there is no proxy and no firewall other than default ones from the OS. I have NordVPN but currently disconnected. However after installed maven 3.8.2, all mvn goal failed that can’t access maven central

JavaScript

threw following error

JavaScript

Anyone has experience to troubleshooting such issue? There is no addtional configuration from settings.xml, everything is original from maven zip file directory downloaded from maven site

PS: it is the same behavior with command line or Intellij or Eclipse. It’s not an issue with IDE but rather something in the environment/OS blocking maven, just hopefully can have some way to debug the issue

Advertisement

Answer

Turned out the cause of this issue is I am running OpenJDK8 in local environment where the certificate Maven is expired, upgraded to latest OpenJDK resolved the issue. @ProgrammersBlock’s advice of using -X definitely is also very helpful to identify the problem

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement