我有两台Windows机器,一台运行Nexus OSS 3,另一台运行ProGet。
现在我想在Nexus中创建一个nuget proxy repository,指向我在ProGet中的一个Feed /存储库。我已按照本指南操作:nuget proxy repository我基本上复制了安装Nexus OSS 3时默认提供的 nuget.org-proxy 代理配置。
但我一直从命令行
获得此错误GET http://mynexus:8082/repository/tools-proxy/Packages(Id='x',Version='1.1.1')
GET http://mynexus:8082/repository/tools-proxy/Packages(Id='x',Version='1.1.1.0')
System.InvalidOperationException: Unable to find version '1.1.1' of package 'x'.
at NuGet.PackageHelper.ResolvePackage(IPackageRepository repository, String packageId, SemanticVersion version)
Nexus网络日志:
2016-05-25 20:13:28,252+0200 INFO [qtp1305498137-264] admin org.sonatype.nexus.rapture.internal.security.SessionServlet - Deleting session for user: admin
2016-05-25 20:13:32,971+0200 ERROR [qtp1305498137-282] *UNKNOWN org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Failed to invoke action method: coreui_Repository.coreui_Repository_readStatus, java-method: org.sonatype.nexus.coreui.RepositoryComponent.readStatus
org.apache.shiro.authz.UnauthenticatedException: The current Subject is not authenticated. Access denied.
at org.apache.shiro.authz.aop.AuthenticatedAnnotationHandler.assertAuthorized(AuthenticatedAnnotationHandler.java:53) [na:na]
at org.a
当我在包 X 上运行nuget install时,将代理存储库URL指定为源:
nuget install x -Version 1.1.1 -Source http://mynexus:8082/repository/tools-proxy -Pre -NoCache -Verbosity detailed
该软件包确实存在于原始ProGet供稿中,如果我指定直接/非代理供稿,则安装工作正常:
nuget install x -Version 1.1.1 -Source http://myproget:8181/repository/tools -Pre -NoCache -Verbosity detailed
GET http://myproget:8181/nuget/Tools/Packages(Id='x',Version='1.1.1')
GET http://myproget:8181/nuget/Tools/package/x/1.1.1
Installing 'x 1.1.1'.
Successfully installed 'x 1.1.1'.
我尝试过使用nuget版本2.8和3.4。
我的ProGet服务器配置了内置身份验证:
Anonymous有下载权限:
当Anonymous在我的ProGet服务器上拥有下载权限时,为什么会出现此访问错误?