IntelliJ cannot resolve dependency: mysql-connector-java
<p>I ran into an issue where IntelliJ did not recognize the mysql-connector dependency in my pom.xml file. It shows up in red and says "Dependency 'mysql:mysql-connector-java:8.0.25' not found". I don't need to download anything, right? Is it enough to just declare dependencies in pom.xml? I had the same problem with maven-failsafe-plugin. </p>
<p>My pom.xml file dependencies are as follows:</p>
<pre class="brush:php;toolbar:false;"><dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.25</version>
<scope>compile</scope>
</dependency></pre>
<p>If anyone has any suggestions it would be greatly appreciated. </p>