简体   繁体   English

Ubuntu中不可解析的父POM

[英]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. 我无法在ubuntu 17.04上运行基于Maven的spring-boot项目,即使它在Windows中运行得很好。 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. 到目前为止,即使我从Eclipse光子IDE或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. 我尝试过更改PC的Java版本,并且可以肯定,由于经过不同版本的大量测试之后它的java-8-oracle ,现在可能不是问题。 wget is not working for the terminal for URL http://repo.maven.apache.org/maven2 even though it's working in the browser. wget在URL http://repo.maven.apache.org/maven2的终端上不起作用,即使它在浏览器中也起作用。 Almost trying from 2 Days now so desperately looking for some tricks to get this to work. 现在几乎要从2天开始尝试,所以拼命地寻找一些技巧来使它起作用。 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 经历了所有麻烦之后,我终于找到了问题所在,这与SSL有关,因为在执行了这些步骤之后, 使用ca-certificate解决了此问题后,该问题才得以解决

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.) (仅清除并重新安装jdk是不够的,在那之后我仍然有一个Java命令。仅通过清除java-common也可以,然后重新安装就可以了。)

Afterwards, I reinstalled java again (I opted only for openjdk-8): 之后,我再次重新安装了Java(我只选择了openjdk-8):

sudo apt install openjdk-8-jdk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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