Intellij idea cannot resolve anything in maven
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.
I have encountered this problem,idea cannot download all dependent jar packages using maven,i just tried the following operations:
mvn -U idea:idea
then all the dependent jar packages are download from the maven repository