Artifactory supports P2 repositories with Allow Anonymous Access enabled. For more information, see Allow Anonymous Access.
When Allow Anonymous Access is enabled, Artifactory will not query the P2 client for authentication parameters by default, so you need to indicate to Artifactory to request authentication parameters differently.
You can override the default behavior by selecting the Force Authentication checkbox in the New or Edit Repository dialog.
When set, Artifactory will first request authentication parameters from the P2 client before trying to access this repository.