How to get IntelliJ IDEA to correctly import maven libraries?

I use IntelliJ IDEA version 14.1.4 and import the Maven pom.xml file to create the IDEA project configuration. I expect him to read the dependencies declared in the pom file and configure the IDEA module to use these libraries, but that is not the case; instead, it does not find (all) libraries and therefore does not create. (The project is executed from the command line using Maven.)

If I open the Project Structure dialog box and look at a separate module, I see that it has no dependencies other than the JDK and. "If I try to add one, I find that some Maven libraries appear in the Project Libraries list, but I don’t need any of them.If I click "New Library" to add the maven library, I can specify the library by name and it even appears in the autocomplete list, but when I click "OK" I get an error "Files did not load."

I tried looking in the settings under Build, Execution, Deployment> Build Tools> Maven> Repositories and my local repository. Also, if I open the maven repository manually, I can find the .pom and .jar files for the package.

I would welcome any suggestion on how to fix this or how to fix it.

[Note: to any JetBrains users who notice this. StackOverflow is wonderful and that’s all, and I hope I get an answer here, but I spent about 20 minutes trying to post it on devnet.jetbrains.com. This did not allow me to enter. I would leave a message about this ... but I could not log in.]

+4
source share

All Articles