为什么Nexus 2.0不能缓存远程工件?
不确定是否可以提供帮助。如果你能推荐一个更好的地方,请通知我。
我在64位ubuntu下下载并安装了Nexus 2.0。 Nexus启动并在默认端口8081上可用。我为存储库启用了“下载远程索引”。每个存储库的“浏览索引”选项卡显示索引树。
然而,当我尝试从maven目标(例如mvn clean)命中回购时,它无法在Nexus 2.0缓存中找到任何工件。
$ mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Rocks 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.471s
[INFO] Finished at: Wed Feb 29 10:14:06 MST 2012
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not find artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 in nexus (http://localhost:8081/nexus/content/groups/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
将日志级别设置为DEBUG并命中nexus服务器(通过mvn clean)后,nexus日志(wrapper.log)中显示以下内容:
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.security.StatelessAndStatefulWebSessionManager - Session ID cookie is disabled - session id will not be acquired from a request cookie.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@25bfa475]. Returning null to indicate a session could not be found.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.security.filter.authc.NexusSecureHttpAuthenticationFilter - No authorization found (header or request parameter)
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.security.filter.authc.NexusSecureHttpAuthenticationFilter - Attempting to authenticate Subject as Anonymous request...
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.authc.credential.SimpleCredentialsMatcher - Performing credentials equality check for tokenCredentials of type [org.apache.shiro.crypto.hash.SimpleHash and accountCredentials of type [org.apache.shiro.crypto.hash.SimpleHash]
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.authc.credential.SimpleCredentialsMatcher - Both credentials arguments can be easily converted to byte arrays. Performing array equals comparison
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.authc.AbstractAuthenticator - Authentication successful for token [org.apache.shiro.authc.UsernamePasswordToken - anonymous, rememberMe=false]. Returned account [anonymous]
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.subject.support.DefaultSubjectContext - No SecurityManager available in subject context map. Falling back to SecurityUtils.getSecurityManager() lookup.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.subject.support.DefaultSubjectContext - No SecurityManager available in subject context map. Falling back to SecurityUtils.getSecurityManager() lookup.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.security.StatelessAndStatefulWebSessionManager - Stateless client session 8887af7f-97b8-46e1-ad59-2b311dcc97e3 is not persisted.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.security.StatelessAndStatefulWebSessionManager - Session ID cookie is disabled. No cookie has been set for new session with id 8887af7f-97b8-46e1-ad59-2b311dcc97e3
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.web.servlet.SimpleCookie - Added HttpServletResponse Cookie [rememberMe=deleteMe; Path=/nexus; Max-Age=0; Expires=Tue, 28-Feb-2012 17:39:30 GMT]
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.apache.shiro.mgt.AbstractRememberMeManager - AuthenticationToken did not indicate RememberMe is requested. RememberMe functionality will not be executed for corresponding account.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.security.filter.authc.NexusSecureHttpAuthenticationFilter - Successfully logged in as anonymous
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.plexus.appevents.SimpleApplicationEventMulticaster - Notifying 23 EventListener about event org.sonatype.nexus.auth.NexusAuthenticationEvent fired (org.sonatype.nexus.auth.NexusAuthenticationEvent@48c610af)
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus - Event 'org.sonatype.nexus.auth.NexusAuthenticationEvent@48c610af' fired
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository - getTargetsForRequest() :: public:/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.target.DefaultTargetRegistry - Resolving targets for repository='public' for path='/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom'
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.access.DefaultNexusItemAuthorizer - Checking isPermitted() with perms: [nexus:target:1:public:read, nexus:target:any:public:read, nexus:target:3:public:read]
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.rest.ContentPlexusResource - Created ResourceStore request for /groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository - getTargetsForRequest() :: public:/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.target.DefaultTargetRegistry - Resolving targets for repository='public' for path='/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom'
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.access.DefaultNexusItemAuthorizer - Checking isPermitted() with perms: [nexus:target:any:public:read, nexus:target:1:public:read, nexus:target:3:public:read]
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository - public.retrieveItem() :: /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom --> /opt/sonatype/nexus-2.0/./../sonatype-work/nexus/storage/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository - Item /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom not found in local storage.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.mapping.DefaultRequestRepositoryMapper - No mapping exists for request path [/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom]
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases.retrieveItem() :: /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom :: localOnly=false, remoteOnly=false
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom --> /opt/sonatype/nexus-2.0/./../sonatype-work/nexus/storage/releases/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Item /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom not found in local storage.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases retrieveItem() :: NOT FOUND releases:/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - snapshots.retrieveItem() :: /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - The serving of item /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom is forbidden by Maven repository policy.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - snapshots retrieveItem() :: NOT FOUND snapshots:/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - thirdparty.retrieveItem() :: /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom :: localOnly=false, remoteOnly=false
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom --> /opt/sonatype/nexus-2.0/./../sonatype-work/nexus/storage/thirdparty/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Item /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom not found in local storage.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - thirdparty retrieveItem() :: NOT FOUND thirdparty:/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - central.retrieveItem() :: /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom :: localOnly=false, remoteOnly=false, ProxyMode=BLOCKED_MANUAL
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom --> /opt/sonatype/sonatype-work/nexus/storage/central/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Item /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom not found in local storage.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage - /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom --> /opt/sonatype/sonatype-work/nexus/storage/central/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Item /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom not found in local storage.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Item /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom does not exist locally and cannot go remote, throwing ItemNotFoundException.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - central retrieveItem() :: NOT FOUND central:/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Proxy repository 'central' is is not allowed to issue remote requests (BLOCKED_MANUAL), not adding path '/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom' to NFC
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - apache-snapshots.retrieveItem() :: /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - The path /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom is in NFC and still active, throwing ItemNotFoundException.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - codehaus-snapshots.retrieveItem() :: /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - The path /org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom is in NFC and still active, throwing ItemNotFoundException.
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository - public retrieveItem() :: NOT FOUND public:/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
jvm 1 | 2012-02-29 10:39:30 ERROR [lugin-2.4.1.pom] - org.sonatype.nexus.rest.ContentPlexusResource - Got exception during processing request "GET http://localhost:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom": Item not found on path "/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom" in repository "public"!
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.plexus.appevents.SimpleApplicationEventMulticaster - Notifying 23 EventListener about event org.sonatype.nexus.log.internal.LogbackLoggingEvent fired (LogbackLoggingEvent [level=ERROR, message=Got exception during processing request "GET http://localhost:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom": Item not found on path "/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom" in repository "public"!, ])
jvm 1 | 2012-02-29 10:39:30 DEBUG [lugin-2.4.1.pom] - org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus - Event 'LogbackLoggingEvent [level=ERROR, message=Got exception during processing request "GET http://localhost:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom": Item not found on path "/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom" in repository "public"!, ]' fired
分析中央显示零开源?
答案 0 :(得分:0)
当您在Nexus 2.0中调出存储库视图时,根据您拥有的屏幕空间,可能会删除列的一部分数据。在那种情况下,相关数据变得模糊。在这里讨论的情况下,“存储库状态”列被剪切到列简单地说“在服务中”的点。通过扩大专栏,很明显存在情有可原的情况。即,“ - 远程手动阻止......”。
如果右键单击存储库(以管理员身份登录)并选择“阻止代理”,则会发生这种情况。
您可以通过右键单击重新启用,然后从同一弹出菜单中选择“允许代理”。