2

I'm new to Java/Linux/Maven/IntelliJ. When I look at the script serving to build the the code, I see something like this:

mvn clean install -Dmaven.test.skip=true 

Long story short, the code is compiling just fine. I can open the browser and use the application normally.

However, when I open the code in IntelliJ, some of the class are highlighted in red Cannot resolve symbol or cannot resolve method, on and on.

I've rebuilt a couple of time, re-import the project, but still experiencing the same issue. Another developer has followed the same steps and is not experiencing the same issues.

Is there any reason, IntelliJ is not recognizing those classes/methods?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Richard77
  • 20,343
  • 46
  • 150
  • 252

2 Answers2

0

You can try to run "File | Invalidate Caches"

Iulian
  • 19
  • 2
0

If you are still reading, possibly some coding confusion. For me, there were similarly named objects in the repository and services, and so I was barking up the wrong tree in looking for a problem with IntelliJ.

Dan Crosby
  • 79
  • 1
  • 4