I am new to using IntelliJ Idea. I downloaded the example code from the site - Java Persistence With Hibernate and opened the project in IntelliJ Idea IDE. The IDE is showing all compilation errors even though I am able to build the project from my command line terminal using mvn clean install
command. I am not sure where I am going wrong and I do not see any errors configuring the project. Please let me know where I am going wrong.
Asked
Active
Viewed 44 times
0

zilcuanu
- 3,451
- 8
- 52
- 105
-
Did you tell IntellIJ to import the project as a maven project? – Naros Feb 05 '17 at 20:55
-
@Naros I did File > Open and pointed it to the hibernate project. It automatically detected all the pom and configured. Since then, all the Java files are showing compile time errors stating hibernate related classes are not getting detected. – zilcuanu Feb 06 '17 at 01:49
-
1when you open pom.xml files, is there any dependency error? Did you try 'maven projects > reimport All maven projects'? – utkusonmez Feb 06 '17 at 12:11