我正在使用 Jfrog 的 Artifactory,并且我已将 repo1.maven.org/maven2 作为远程存储库包含在内,但是当我从我的 IDE 请求特定的工件时,工件不会从远程服务器将其下载到缓存中?知道我在这里缺少什么吗?
编辑:
artifactory.log 显示以下错误消息
2012-01-09 13:08:10,814 [pool-1-thread-15] [INFO ] (o.a.c.h.HttpMethodDirector:445) - Retrying request
2012-01-09 13:08:11,814 [pool-1-thread-15] [WARN ] (o.a.r.RemoteRepoBase:323) - jfrog-libs: Error in getting information for 'opensymphony/quartz/1.6.5/quartz-1.6.5.pom' (Failed retrieving resource from http://repo.jfrog.org/artifactory/libs-release-local/opensymphony/quartz/1.6.5/quartz-1.6.5.pom: Connection refused: connect).
2012-01-09 13:08:13,408 [pool-1-thread-16] [INFO ] (o.a.c.h.HttpMethodDirector:439) - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
下面是项目的 pom.xml 的一部分
<distributionManagement>
<repository>
<id>COMPANY_INTERNAL</id>
<name>COMPANY internal repository</name>
<url>http://artifactoryserver:18081/artifactory/company</url>
</repository>
<snapshotRepository>
<id>COMPANY_INTERNAL_SNAPSHOTS</id>
<name>companyinternal snapshot repository</name>
<url>http://artifactoryserver:18081/artifactory/company</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>COMPANY_PUBLIC</id>
<name>COMPANY internal and external repository</name>
<url>http://artifactoryserver:18081/artifactory/repo</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>COMPANY_PLUGINS</id>
<name>Maven Plugin Repository</name>
<url>http://artifactoryserver:18081/artifactory/plugins-releases</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
截图
1)本地存储库 2)远程存储库 3)虚拟存储库 4)存储库浏览器
还包括下面的 request.log 内容,
20120110094113|3735|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/com/vividsolutions/jts/1.12-SNAPSHOT/maven-metadata.xml|HTTP/1.1|200|311
20120110094114|63|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/com/vividsolutions/jts/1.12-SNAPSHOT/maven-metadata.xml.sha1|HTTP/1.1|200|40
20120110094114|16|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/com/vividsolutions/jts/1.12-SNAPSHOT/jts-1.12-SNAPSHOT.pom|HTTP/1.1|304|461
20120110094116|2422|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial/1.0-SNAPSHOT/maven-metadata.xml|HTTP/1.1|200|326
20120110094116|16|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial/1.0-SNAPSHOT/maven-metadata.xml.sha1|HTTP/1.1|200|40
20120110094116|0|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial/1.0-SNAPSHOT/hibernate-spatial-1.0-SNAPSHOT.pom|HTTP/1.1|304|1761
20120110094117|0|REQUEST|SERVER_IP_HIDDEN|admin|GET|/webapp/systemlogs.html|HTTP/1.1|200|0
20120110094118|2406|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial-maven/1.0-SNAPSHOT/maven-metadata.xml|HTTP/1.1|200|332
20120110094118|15|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial-maven/1.0-SNAPSHOT/maven-metadata.xml.sha1|HTTP/1.1|200|40
20120110094119|16|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial-maven/1.0-SNAPSHOT/hibernate-spatial-maven-1.0-SNAPSHOT.pom|HTTP/1.1|304|8144
20120110094121|2281|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/company/companylib_service_hibernate/5.0.0-SNAPSHOT/maven-metadata.xml|HTTP/1.1|200|317
20120110094121|16|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/company/companylib_service_hibernate/5.0.0-SNAPSHOT/maven-metadata.xml.sha1|HTTP/1.1|200|40
20120110094121|0|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/company/companylib_service_hibernate/5.0.0-SNAPSHOT/companylib_service_hibernate-5.0.0-SNAPSHOT.pom|HTTP/1.1|304|4224
20120110094123|2297|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/company/companylib_domain_parent/5.0.0-SNAPSHOT/maven-metadata.xml|HTTP/1.1|200|313
20120110094123|16|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/company/companylib_domain_parent/5.0.0-SNAPSHOT/maven-metadata.xml.sha1|HTTP/1.1|200|40
20120110094123|0|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/company/companylib_domain_parent/5.0.0-SNAPSHOT/companylib_domain_parent-5.0.0-SNAPSHOT.pom|HTTP/1.1|304|13997
20120110094126|2406|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial-oracle/1.0-SNAPSHOT/maven-metadata.xml|HTTP/1.1|200|333
20120110094126|16|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial-oracle/1.0-SNAPSHOT/maven-metadata.xml.sha1|HTTP/1.1|200|40
20120110094126|0|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial-oracle/1.0-SNAPSHOT/hibernate-spatial-oracle-1.0-SNAPSHOT.pom|HTTP/1.1|304|1779
20120110094127|15|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial/1.0-SNAPSHOT/hibernate-spatial-1.0-SNAPSHOT.jar|HTTP/1.1|304|77589
20120110094127|16|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/com/vividsolutions/jts/1.12-SNAPSHOT/jts-1.12-SNAPSHOT.jar|HTTP/1.1|304|755797
20120110094127|0|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/company/companylib_service_hibernate/5.0.0-SNAPSHOT/companylib_service_hibernate-5.0.0-SNAPSHOT.jar|HTTP/1.1|304|77835
20120110094127|15|REQUEST|SERVER_IP_HIDDEN|non_authenticated_user|GET|/repo/org/hibernatespatial/hibernate-spatial-oracle/1.0-SNAPSHOT/hibernate-spatial-oracle-1.0-SNAPSHOT.jar|HTTP/1.1|304|62943
20120110094127|15|REQUEST|SERVER_IP_HIDDEN|admin|GET|/webapp/systemlogs.html|HTTP/1.1|200|0
20120110094137|0|REQUEST|SERVER_IP_HIDDEN|admin|GET|/webapp/systemlogs.html|HTTP/1.1|200|0