Can't IntelliJ recognize my project?

Answered

I have a Maven project which I can compile well with "mvn clean install" at command line. There is no any error message. However, after I import it into IntelliJ by selecting import from existing project, initially I don't see any error message too.  But when I click each individual Java file, all dependencies are not recognized. It seems somehow the whole project can't be recognized.

Is there some setting that I should check in IntelliJ?

0
2 comments

Delete .idea directory and import pom.xml file.

If you still don't see the dependencies resolved, refer to http://stackoverflow.com/a/42427510/104891 for the diagnostics.

4
Avatar
Permanently deleted user

Cheers! Ta' Serge, a simple and efficient solution

Lars

0

Please sign in to leave a comment.