http authentication between using ant/ivy retrieving dependency from nexus?

前端 未结 1 2043
执念已碎
执念已碎 2021-01-13 01:38

I have an issue when attempting to retrieve a dependency from a nexus repository when running ant with ivy. the dependency is never resolved, when running with verbose outp

相关标签:
1条回答
  • 2021-01-13 01:47

    Are you getting a HTTP 401 error? That would indicate problems with the credentials being used to login to Nexus.

    Can be fixed by adding a credentials entry in your ivy settings file:

    <credentials host="${nexus.host}" realm="Sonatype Nexus Repository Manager" username="${nexus.user}" passwd="${nexus.pass}" />  
    

    The gotcha is you need to specify the correct Nexus security realm.

    0 讨论(0)
提交回复
热议问题