September 8, 2010

Force Maven Dependencies to IntelliJ IDEA Libraries

IntelliJ IDEA has great support for importing Maven projects. All dependencies defined in a Maven POM file are also available as libraries in the IntelliJ IDEA project. But today I got a big Maven project with a lot of submodules and not all dependencies ended up in the libraries section of the IntelliJ IDEA project. Luckily I only had to do Force Reimport All Maven Projects from the Maven Projects window. And afterwards all the IntelliJ IDEA projects had a complete libraries section with all dependencies.