title: IntelliJ IDEA says Maven class not found
body: <p>I am using IntelliJ IDEA. I have one sample Java code which requires MySQL driver class using <code>class.forName();</code> to get database connection. It is a standalone Java application. When I run the main method of that class, I get <code>ClassNotFoundException</code>. But, I have that sample code in a Maven project in which MySQL jar is configured. What am I missing? Eclipse does the job.</p>