Intellij idea cannot resolve anything in maven
intellij-idea, maven, maven-3
Solution
In IntelliJ 12.1.4 I went through `Settings --> Maven --> Importing` and made sure the following was selected:
- Import Maven projects automatically
- Create IDEA modules for aggregator projects
- Keep source...
- Exclude build dir...
- Use Maven output...
- Generated souces folders: "detect automatically"
- Phase to be...: "process-resources"
- Automatically download: "sources" & "documentation"
- Use Maven3 to import project
- VM options for importer: -Xmx512m
This took me from having a lot of unresolved import statements to having everything resolved. I think the key here was using Maven3 to import project... Hopefully this helps.
Problem
I just imported a project with `pom.xml`, but the IDE didn't resolve anything in maven dependencies. Anything defined in `pom.xml` dependencies when import in code raise an error `cannot resolve symbol xxxxx` But `mvn install` will work, I try import the dependencies in `Project Settings/Libraries` in `.jar` files, then it works, but could the ide resolve libraries defined in `pom.xml`? i don't want to do that everytime. Additionnal info: IDEA version: 12.0.3, OS : windows 7, reimport does not work, maven version : 3.0.4, maven dependencies does not exists under Exernal Libraries. There are no exceptions in idea.log...