1.From Maven command line, I type mvn idea:module
and all dependencies builds fine,and successful import IntelliJ IDEA,all is fine.
2.After i type mvn idea:clean
,clean all build. In IntelliJ IDEA, in the right navigation bar, I click Add Maven Projects , choose pom.xml
, then IntelliJ always shows Resolving Maven Dependencies in Background Tasks.
In my project, I use private Nexus repositories.
Very strange why IntelliJ doesn't tell me why to resolve maven dependencies on always!
I want to know why two kinds of ways to import projects have different results.
If you already have pom.xml you can open it from File->Open Project
. Maven always works great in Intellij for me, never had to Add Maven Projects before.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.