简体   繁体   中英

Non-resolvable parent POM in Ubuntu

I am not able to run my maven based spring-boot project on ubuntu 17.04 even though it's running in windows nicely. So far it is throwing the same error as in the picture even if I try from my Eclipse photon IDE or the Maven CLI.

在此处输入图片说明

I tried changing the java versions of the PC and pretty sure it might not be the issue now since its java-8-oracle after a lot of testing with different versions. wget is not working for the terminal for URL http://repo.maven.apache.org/maven2 even though it's working in the browser. Almost trying from 2 Days now so desperately looking for some tricks to get this to work. Thanks in advance

With all the trouble i went through finally figured out the issue and it was related to SSL since after working on with this answer issue with ca-certificates after doing those steps got it to work

sudo apt purge openjdk-9-jdk openjdk-8-jdk java-common

(Just purging and reinstalling the jdk was not enough, I still had a java command after that. Only by purging java-common that also went away and then reinstallation worked.)

Afterwards, I reinstalled java again (I opted only for openjdk-8):

sudo apt install openjdk-8-jdk

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM