I’ve already disabled anonymous access to the server and disabled the anonymous user, however, when I try to open the URL to an artifact in a maven2 repository directly I will still get the download:
Is there a way to completely disable unauthenticated access?
I believe you’ll need to setup a Repository View permission and assign it to any roles that you want to be able to access the repository. Once you do that public access should no longer be allowed. You can find the security documentation here for more details.