如果nexus repo受密码保护,则尝试解析来自nexus的构建不起作用。giving--存储库http://:<url_safe_password>@:/<repo_path>不起作用
我遇到了这个问题,找不到简单的解决方案,所以它来了:
解析受密码保护的存储库失败(至少适用于http-nexus-url(。为了解决这个问题,我们可以做以下事情。
- 使用凭据和解析详细信息创建ivysetting.xml(详细信息可在此处找到(
- 使用
--conf spark.jars.ivySettings=2/ivysettings.xml
传递ivysetting.xml以引发提交
示例ivysetting.xml仅用于设置您的nexus repo解析(这将破坏本地缓存存储库解析(
<ivysettings>
<settings defaultResolver="nexus"/>
<property name="nexus-public" value="http://nexus_url:nexus_port/path/to/repo/"/>
<credentials host="nexus_url_without_http_or_port" realm="Sonatype Nexus Repository Manager" username="user" passwd="secret"/>
<resolvers>
<ibiblio name="nexus" m2compatible="true" root="${nexus-public}"/>
</resolvers>
</ivysettings>