Broken Maven Integration

Maven integration has suddenly stopped managing dependencies for new maven projects created via the project import facility. For newly imported maven projects there are no dependencies listed in the maven tool window and all imports for classes provided by maven dependencies are broken. I have worked around this by manually adding dependencies for small projects, but that is obviously not feasible for large ones.

This problem started after having deleted all files in a project root directory from a terminal while IDEA was open. (That's a fairly standard flow for projects using GitHub pages where you effectively have two different branches with entirely different contents, and only one is a Java source project.) After this incident, all attempts to recreate the project, even from backups, will not restore maven dependency management features. Additionally, the ability to import new maven-based projects is similarly impaired.

Has anyone else seen this? Suggestions to fix? This feels like a bug, but I thought I would mention it in case there's some configuration knobs I can turn to fix.

I should note this is IntelliJ IDEA 12.1.6.

Thanks,
Marvin

1 comment
Comment actions Permalink

I fixed the problem. My ~/.m2/settings.xml file is symlinked to an external drive that was not mounted. After having mounted, thereby fixing the symlink, and restarted IDEA, Maven dependency resolution is magically working. That feels like a bug; if nothing else IDEA should emit a warning about a required file that's missing to help guide fixing the problem.

M

0

Please sign in to leave a comment.