1.pom文件出现灰色,并且带有横线,可能是因为你频繁删除这个项目,又创建造成的,

        解决办法:找到找到这个页面,把对钩点掉。确定,重启一下idea就OK了。

2.创建的maven项目,无法运行

        八成就是你的maven配置有问题

        我在这假定你已经成功安装了maven,在idea中也成功的导入了。

        如果出现问题,那就是maven的settings.xml文件出现了问题

        我在这给一份我自己配置好的,记得把本地仓库的地址改了。

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">

D:\Maven\apache-maven-3.9.1\repository

maven-default-http-blocker

external:http:*

Pseudo repository to mirror external repositories initially using HTTP.

http://0.0.0.0/

true

nexus-aliyun

Nexus aliyun

https://maven.aliyun.com/nexus/content/groups/public/

central

相关阅读

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。