I have a Java app based on Maven, and want to connect to MySQL server.
My pom has:
mysql
&l
The answer is here - How can I create an executable JAR with dependencies using Maven?
I needed to build an uber pom, using the answer in the link above - this builds in the dependencies (in this case the mysql jar file) into a single SNAPSHOT jar file.
Just make sure you run it with mvn clean compile assembly:single (not the usual mvn clean package or whatever.