IntelliJ 2016.3 Ultimate: Maven dependencies not resolving on import
IntelliJ IDEA 2016.3
Build #IU-163.7743.44, built on November 17, 2016
[...]
JRE: 1.8.0_112-release-408-b2 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
I am attempting to import a Maven project that has a top-level pom (pom packaging) that has a parent pom pulled from our Artifactory repo (which exists on my local repo) that defines two modules and 10 dependencies (with versions).
Each module pom names the parent, and its dependencies lack versions (my understanding is that these would come from the parent definition).
When I import the top-level POM none of the dependencies are resolved and the submodules will not build.
This used to work fine: before I bought 2016.3 Ultimate I was using 2016.2 with the same poms.
I ran into this with another project of mine (no submodules), and after much googling someone recommended doing the import with Maven 2. That worked.
But it doesn't work now, nor does going back to the bundled Maven 3.
Invoking maven from the command-line, using maven 3, works fine as well (dependencies are resolved.)
I'm very confused, and somewhat annoyed.
Has anyone else experienced this?
Thanks.
Tom Emerson
Please sign in to leave a comment.
There is probably some exception in idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085) thay may help to understand why Maven fails to import.
The idea.log gave me enough information to track down the problem. There were a couple of things going on in my case:
Once I fixed the module poms and switched from the internal Maven all worked fine.