我正在使用Jfrog的Artifactory,並且已將repo1.maven.org/maven2作爲遠程存儲庫包含進來,但是當我從我的IDE請求特定工件時,工件不會將其下載到從遠程服務器緩存?任何想法我在這裏失蹤?無法將外部罐子下載到Artifactory中
編輯:
的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的一部分) Local Repository 2)Remote Repository 3)Virtual Repository 4)Repository Browser
還包括以下內容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
你確定你的版本試圖使用你的Artifactory服務器作爲回購,還是直接轉到Central?您可以在settings.xml中使用鏡像來鏡像Central,並強制您的構建轉到Artifactory以獲取所有工件。 – tdrury 2012-01-09 17:31:41
所以基本上我有pom.xml,其中repositoy,pluginRepository都指向artifactory服務器。 「你是什麼意思」或者是直接到中央而不是「? – 2012-01-09 17:34:22
這裏有很多因素可能有效。 你在用什麼IDE?您使用的是哪種依賴關係管理集成? 您可以先看看Artifactory的請求日誌(可以在$ ARTIFACTORY_HOME/logs/request.log中找到)來查看您的請求是否到達存儲庫。 – noamt 2012-01-09 17:54:49