首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在文件已经缓存的情况下,为什么nexus远程存储库?

在文件已经缓存的情况下,为什么nexus远程存储库?
EN

Stack Overflow用户
提问于 2014-08-15 04:48:08
回答 1查看 296关注 0票数 0

我已经安装并配置了一个连接到多个远程存储库的nexus服务器。其中之一是http://www.hibernatespatial.org/repository/,因为我们依赖于

代码语言:javascript
复制
<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-spatial</artifactId>
  <version>4.0</version>
  <type>jar</type>
</dependency>

解析依赖关系,将其下载到节点并缓存到磁盘上。但是,即使在初始请求之后,nexus也会很慢地处理文件。我确认它是写在nexus服务器的磁盘上的。

我启用了调试日志并跟踪了网络活动,但它仍然尝试连接以删除存储库:

代码语言:javascript
复制
192.168.116.040.39206-199.019.214.133.00080: GET /org/hibernate/hibernate-

spatial/4.0/hibernate-spatial-4.0.pom HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip,deflate,identity
Cache-Control: no-cache
Host: maven.jdkcn.com
Connection: Keep-Alive
User-Agent: Nexus/2.6.4-02 (OSS; Linux; 2.6.32-26-pve; i386; 1.7.0_45) apacheHttpClient4x/2.6.4-02
Cookie: JSESSIONID=3B558A150F45899EFC9B59A10665AE2A
Cookie2: $Version=1


**199.019.214.133.00080-192.168.116.040.39206: HTTP/1.0 404 Not Found**
Server: nginx/1.4.7
Date: Wed, 13 Aug 2014 21:11:56 GMT
Content-Type: text/html;charset=UTF-8
X-Cache: MISS from felicitas.8d.com
X-Cache-Lookup: MISS from felicitas.8d.com:3128
Via: 1.1 felicitas.8d.com:3128 (squid/2.7.STABLE9)
Connection: close


199.019.214.133.00080-192.168.116.040.39206: 
<html>
<head>
    <title>404</title>
</head>
<body>
    <h1>oh, not found your page.</h1>
</body>
</html>

192.168.116.040.58909-137.254.120.026.00080: GET /maven/2/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip,deflate,identity
Cache-Control: no-cache
Host: download.java.net
Connection: Keep-Alive
User-Agent: Nexus/2.6.4-02 (OSS; Linux; 2.6.32-26-pve; i386; 1.7.0_45) apacheHttpClient4x/2.6.4-02


**137.254.120.026.00080-192.168.116.040.58909: HTTP/1.0 404 Not Found**
Server: Sun-Java-System-Web-Server/7.0
Date: Wed, 13 Aug 2014 20:37:55 GMT
Content-Type: text/html
Content-Length: 292
X-Cache: MISS from felicitas.8d.com
X-Cache-Lookup: MISS from felicitas.8d.com:3128
Via: 1.1 felicitas.8d.com:3128 (squid/2.7.STABLE9)
Connection: close


137.254.120.026.00080-192.168.116.040.58909: <HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"><TITLE>Not Found</TITLE></HEAD>
<H1>Not Found</H1> The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. 
192.168.116.040.58910-137.254.120.026.00080: GET /maven/glassfish/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip,deflate,identity
Cache-Control: no-cache
Host: download.java.net
Connection: Keep-Alive
User-Agent: Nexus/2.6.4-02 (OSS; Linux; 2.6.32-26-pve; i386; 1.7.0_45) apacheHttpClient4x/2.6.4-02


**137.254.120.026.00080-192.168.116.040.58910: HTTP/1.0 404 Not Found**
Server: Sun-Java-System-Web-Server/7.0
Date: Wed, 13 Aug 2014 20:37:55 GMT
Content-Type: text/html
Content-Length: 292
X-Cache: MISS from felicitas.8d.com
X-Cache-Lookup: MISS from felicitas.8d.com:3128
Via: 1.1 felicitas.8d.com:3128 (squid/2.7.STABLE9)
Connection: close


137.254.120.026.00080-192.168.116.040.58910: <HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"><TITLE>Not Found</TITLE></HEAD>
<H1>Not Found</H1> The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. 
192.168.116.040.48686-107.023.147.174.00080: GET /maven2/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip,deflate,identity
Cache-Control: no-cache
Host: jasperforge.org
Connection: Keep-Alive
User-Agent: Nexus/2.6.4-02 (OSS; Linux; 2.6.32-26-pve; i386; 1.7.0_45) apacheHttpClient4x/2.6.4-02


**107.023.147.174.00080-192.168.116.040.48686: HTTP/1.0 403 Forbidden**
Date: Wed, 13 Aug 2014 21:11:57 GMT
Server: Apache/2.2.15 (CentOS)
Content-Length: 351
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from felicitas.8d.com
X-Cache-Lookup: MISS from felicitas.8d.com:3128
Via: 1.1 felicitas.8d.com:3128 (squid/2.7.STABLE9)
Connection: close


107.023.147.174.00080-192.168.116.040.48686: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /maven2/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom
on this server.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at jasperforge.org Port 80</address>
</body></html>

192.168.116.040.42250-074.205.095.173.00080: GET /artifactory/repo/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip,deflate,identity
Cache-Control: no-cache
Host: repository.pentaho.org
Connection: Keep-Alive
User-Agent: Nexus/2.6.4-02 (OSS; Linux; 2.6.32-26-pve; i386; 1.7.0_45) apacheHttpClient4x/2.6.4-02
Cookie: JSESSIONID=E432F1D78CE8B6F63C2F04F325926A34
Cookie2: $Version=1

我还在日志中看到:

代码语言:javascript
复制
2014-08-13 17:13:51 DEBUG [qtp20879656-157423 - /nexus/content/groups/public/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom] xavier org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository - Item ResourceStoreRequest{requestPath='/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom', requestContext=RequestContext{this={request.address=192.168.142.59, request.isConfidential=true, request.remoteOnly=false, request.url=https://nexus.priv.8d.com:2443/nexus/content/groups/public/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom, request.user=xavier, request.localOnly=false, request.agent=Wget/1.15 (linux-gnu), request.asExpired=false, request.appRootUrl=https://nexus.priv.8d.com:2443/nexus, request.external=true}, parent=null}, pathStack=[/groups/public/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom], processedRepositories=[public], appliedMappings={}} not found in local storage.

但是,如果使用节点管理界面中的浏览存储选项卡,则可以看到该文件。

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2014-08-15 14:46:04

我是否可以误解您的问题,但此错误消息是什么意思:

代码语言:javascript
复制
<h1>Forbidden</h1>
<p>You don't have permission to access /maven2/org/hibernate/hibernate-spatial/4.0/hibernate-spatial-4.0.pom
on this server.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at jasperforge.org Port 80</address>
</body></html>

因此,我假设您不被允许访问此存储库,或者该存储库存在临时问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25317340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档