/usr/share/maven-repo/org/hamcrest/hamcrest-library/1.2/hamcrest-library-1.2.jar is in libhamcrest1.2-java 1.2-0ubuntu1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/maven-repo/org/hamcrest/hamcrest-library/1.2/../../../../../java/hamcrest-library-1.2.jar