解决部署springboot环境时spring-boot-maven-plugin插件未加载问题
目录
- 使用新电脑部署Springboot环境时出现
- 我的setting.XML配置的镜像配繁琐了
- 在idea中将maven的环境配置好
- 总结
使用新电脑部署Springboot环境时出现
spring-boot-maven-plugin未加载上提醒,起初以为MAC未越狱之类的问题,后来仔细研究了几个安装的教学视频发现,主要问题出在maven的www.devze.comsettjsings.xml配置上。
我的setting.xml配置的镜像配繁琐了
改成阿里云的镜像其实就好了:
<mirror> <id>nexus-aliyun</id> <mirr编程orOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>javascript
之后我又检查了一番,在settings.xml文件中配置本地仓库的路径(也可使用默认的路径),我这里配js置的路径:
<localRepository>/Users/wenyunxin/Downloads/work/tool/apache-maven-3.6.3/repository</localRepository>
在idea中将maven的环境配置好
如图:
保存以上操作后,在pom.xml文件上右键->maven->Reimport重新加载一遍以上配置,spring-boot-maven-plugin插件就好了。
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持编程客栈(www.devze.com)。
精彩评论