在迁移到SBT 0.13.5后,Artfactory中未经验证的用户(Unauthenticated user in Artfactory after migrating to SBT 0.13.5)

编程入门 行业动态 更新时间:2024-10-24 14:19:54
在迁移到SBT 0.13.5后,Artfactory中未经验证的用户(Unauthenticated user in Artfactory after migrating to SBT 0.13.5)

我有一个由7名成员组成的团队,由一名代理人组成,我们从0.13.1移至0.13.5。 在sbt迁移之后,其中一个团队成员不能再执行sbt。 我所有的依赖都是在artifactory中设置的,我没有访问外部存储库的权限。 使用系统变量覆盖SBT存储库。

我已经把'repositories'文件放入〜/ .sbt /'repositories'文件中,包括:

[repositories] local my-maven-proxy-releases: http://repoaddress/artifactory/remote-repos/ my-ivy-proxy-releases: http://repoaddress/artifactory/Ivy-remote/,[organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

我使用系统变量在SBT的启动命令中包含'-Dsbt.override.build.repos = true'。

每当他尝试加载sbt时,由于未解决的依赖SBT 0.13.5而失败。我想知道是否有方法记录来自尝试查找sbt 0.13.5的http响应?

Artifactory request.log显示这个特定用户是: non_authenticated_user

我的artifactory的凭证已添加到位于sbt_home / plugins /内的credentials.sbt文件中并且凭证文件已添加到.ivy2 / .credentials文件中。 我已经将用户更改为在另一个工作站上工作的管理员用户,但仍然无法获得0.13.5的sbt。 上面显示了错误日志:

HTTP response status: 401 url=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.pom CLIENT ERROR: Unauthorized url=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.pom my-maven-proxy-releases: resource not reachable for org/scala-sbt#logging;0.13.5: res=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.pom trying http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.jar tried http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.jar try to get credentials for: Artifactory Realm@repositorio.ginfes.intranet.local authentication: k='Artifactory Realm@repositorio.ginfes.intranet.local' c='null' HTTP response status: 401 url=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.jar

该日志消息被恢复,以避免滚动。 我已经尝试使用jave http.proxy参数运行,如此处所示,并按照此问题中的说明添加了存储库,但同样的错误仍在发生。 当我的项目使用sbt 0.13.1进行配置时,这个问题不会发生。 当我使用sbt版本0.13.1和0.13.5执行项目时发生此错误

有没有办法解决这个身份验证问题? 我错过了一个artifactory配置?

I do have a team of 7 members, set up behind a proxy, and we moved from sbt 0.13.1 to 0.13.5. After the sbt migration, one of the team members can't execute sbt anymore. All my dependencies are set up in the artifactory, and I don't have access to external repositories. SBT repositories are been overwritten using a system variable.

I've put 'repositories' file into ~/.sbt/ 'repositories' file includes:

[repositories] local my-maven-proxy-releases: http://repoaddress/artifactory/remote-repos/ my-ivy-proxy-releases: http://repoaddress/artifactory/Ivy-remote/,[organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

I've included '-Dsbt.override.build.repos=true' in SBT's launch command using a system variable.

Whenever he tries to load sbt, it fail due to the unresolved dependency SBT 0.13.5 I want to know if there is a way to log the http responses from the tries to find sbt 0.13.5?

Artifactory request.log shows that this specific user is: non_authenticated_user

Credentials to my artifactory was added in the credentials.sbt file located inside sbt_home/plugins/ And the credentials file was added to the .ivy2/.credentials file. I've already changed the user to an admin user that works in another workstation but I still can't get the sbt 0.13.5. The error log is showed above:

HTTP response status: 401 url=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.pom CLIENT ERROR: Unauthorized url=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.pom my-maven-proxy-releases: resource not reachable for org/scala-sbt#logging;0.13.5: res=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.pom trying http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.jar tried http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.jar try to get credentials for: Artifactory Realm@repositorio.ginfes.intranet.local authentication: k='Artifactory Realm@repositorio.ginfes.intranet.local' c='null' HTTP response status: 401 url=http://repoaddress/artifactory/remote-repos/org/scala-sbt/logging/0.13.5/logging-0.13.5.jar

This log message is resumed, to avoid scrolling. I've already tried to run using the jave http.proxy arguments, as showed in here and I've added the repositories as explained in this question but the same error still happening. This problem doesn't happen when my project was configured with sbt 0.13.1. This error happens when I execute the project using sbt versions 0.13.1 and 0.13.5

Is there a way to fixing this authentication problem? Am I missing an artifactory configuration?

最满意答案

配置文件现在在0.13.5版本中进行了版本化,只是从中移除了我的存储库配置文件

~/./sbt/

~/.sbt/0.13/

The config files is now versioned in 0.13.5, just moved my repository config files from the

~/./sbt/

to

~/.sbt/0.13/

folder

更多推荐

本文发布于:2023-07-16 22:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1135402.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用户   Artfactory   SBT   user   Unauthenticated

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!