Force Maven Non-Preemptive Authentication for Local, Remote, and Virtual Repositories

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

From Artifactory version 7.37.9, an enhanced Maven Authentication mechanism has been implemented in Artifactory to eliminate the need to perform authentication prior to checking if a package is located in local, remote and virtual repositories. With the new authentication mechanism, when reaching Maven-local-three (which requires authentication), instead of first performing for authentication and next authorization. Artifactory will check if the requested item is located in the repository, if the requested package does exist, it will proceed to perform authentication and authorization. If not, a 404 error message will be triggered. This feature is disabled by default.

To enable non-preemptive authentication, add the artifactory.maven.authentication.nonPreemptive parameter to the artifactory.system.properties file.

Reboot Required

You are required to perform a system reboot after adding this flag.