我已經設置'Artifactory'作爲Intranet maven存儲庫。我有關於故障切換的問題。maven intranet存儲庫故障轉移重定向
項目POM
<repositories>
<repository>
<id>central</id>
<url>http://mvn.mycompany.com:8081/artifactory/libs-release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>snapshots</id>
<url>http://mvn.mycompany.com:8081/artifactory/libs-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://mvn.mycompany.com:8081/artifactory/plugins-release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>snapshots</id>
<url>http://mvn.mycompany.com:8081/artifactory/plugins-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
問題: 是否可以使用故障切換庫?這意味着..如果我的內部網庫已經關閉,那麼Maven build應該自動使用其他位置或者直接從Maven中心?
這種情況一直髮生。爲什麼這會以任何方式出乎意料?存儲庫處於啓動狀態時,這一點非常重要。 – ggb667
您的設置有問題。像甲骨文,CA,EMC,LinkedIn,Netflix這樣的巨大公司並不依賴於他們在Artifactory上的所有開發,而且它們對他們來說非常有效。我相信它也適用於你。你正在使用哪個版本? – JBaruch
該版本不是問題,問題是我在位置A,而位於位置B的IT人員似乎無法保持電源開啓,機器插入,網絡連接正常,防火牆漏洞通過,IP地址固定,服務帳戶沒有被鎖定等等。機器被用於在地點A,並且我可以打開它並且插入並修理或調整它。但可悲的是,不再。謝謝你的專業知識,並幫助我。我似乎讓自己陷入了相當的困境。 – ggb667