2016-10-12 2 views
0

Ich habe Repository in Artefaktory freigegeben, die Authentifizierung benötigt, um Abhängigkeiten aufzulösen/abrufen.Apache Ivy Authentifizierung mit Artefakt

Aus irgendeinem Grund kann Ivy nicht authentifizieren.

mein ivysettings.xml:

<ivysettings> 
    <settings defaultResolver="main" /> 
    <credentials host="localhost" realm="Artifactory Realm" username="admin" passwd="password" /> 
    <resolvers> 
    <chain name="main"> 
     <ibiblio name="public" m2compatible="true" root="http://localhost:8081/artifactory/repo" /> 
    </chain> 
    </resolvers> 
</ivysettings> 

Protokolldatei:

try to get credentials for: Authenticate [email protected] 
authentication: k='Authenticate [email protected]' c='null' 
HTTP response status: 401 url=https://localhost/artifactory/repo... the rest of the log file... 

Artifacotry konfiguriert ist, um gegen LDAP/Active Directory-Bereich = "Artifactory Realm"

Antwort

0

in meiner Konfiguration zu authentifizieren wurde falsch. Es sollte sein: realm = "Artifactory authentifizieren"