作者:手机用户2502917981 | 来源:互联网 | 2023-06-29 19:37
1.用Intellijidea导入mavenproject,发现依赖不能自动下载解决:1.配置如下2.找到maven视图,reimport2.不能自动addlibrarymaven
1.用Intellij idea 导入 maven project ,发现依赖不能自动下载
解决:
1.配置如下

2.找到maven视图,reimport

2.不能自动add library maven
解决:
1.设置automatically,如下图

2.如果自动导入不起作用,那么 (来自stack overflow)
Close your project window (and IntelliJ) and remove all *.iml files and all .idea folders
(there should be one per module)
Run mvn clean install from the command line
Re-import the project into IntelliJ and pay attention when it asks you to enable auto-import
在maven project 视图,再reimport一次。
也许还会有个别的需要add library maven,但是比之前少很多,剩下的手动处理就行了。