/usr/share/maven-repo/mysql/mysql-connector-java/5.1.42/mysql-connector-java-5.1.42.jar is in libmysql-java 5.1.42-1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/maven-repo/mysql/mysql-connector-java/5.1.42/../../../../java/mysql-connector-java-5.1.42.jar