Search code examples
javamavenmaven-2

Unit test fails in maven but not in Intelij Idea


In my project I modified the pom.xml. I changed a library version from 1.0.66 to 1.0.74. When I run mvn clean install a unit test fails, but it doesn't fail in Intelij Idea.

I checked the .m2 folder to see if maven uses the correct version, but seems to look fine.

This is the version from .m2 and in Intelij Idea looks identically.

<lib_name>1.0.74</lib_name> 

Do you have any idea what could be wrong??


Solution

  • After I did from Indelij Idea ---> Invalidate Caches/Restart, now the test fails also in Intelij Idea, maybe something got stuck somewhere.