Updating greyed-out Maven dependencies in-between changes

https://crunchify.com/mavenmvn-clean-install-update-project-and-project-clean-options-in-eclipse-ide-to-fix-any-dependency-issue/

Saved my day. As I am following along with a tutorial, I’m adding to and changing an existing project. Things are bound to break during the changes, but my Maven test dependencies suddenly started to be greyed out, resulting in import errors in the auto-generated test class.

To fix this I just used Task 2,

  • Right click on Project
  • Click on Maven
  • Click on Update Project...

Fixed 😀

 

Leave a comment