springboot项目父工程parent报错,Project build error: Non-resolvable parent POM for model:maven01:0.0.1-SNAPSHOT
所遇到的问题
1.eclipse在创建springboot项目父工程时,导入依赖报错:
2.在maven配置无误的情况下,发现需要在maven的setting.xml里配置阿里云的mirror。
<mirror>
<id>CN</id>
<mirrorOf>central</mirrorOf>
<name>OSChina Central</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
3.当然eclipse和maven还要再update一次
3.1windows-preference-maven-user settings-update settings-apply
3.2 然后windows-show view-other-maven-mavenrRepositories,在出现的localRepository右键rebuild index
3.3 然后更新工程,右键maven-update project
OK,问题解决!
如果还有问题则先查看maven的环境配置是否配置或是否正确配置,然后执行上述流程就可以正常运行了。