Once you have added the dependency in module-info.java, you might also need to click on the "M" on the right side of the screen (the Maven symbol) and press the refresh button to make sure that it has picked up on the change you made to the dependencies. I've found refreshing/reloading the Maven project is a good first step if at any point you try to run your software and it is not able to complete the build.