今日、古い Nexus サーバーから Nexus OSS v2.0.4 に移行する必要がありました。朝から奇妙な問題に直面しています。最初に nexus をインストールして起動しましたが、サーバー マシンから一度だけ閲覧でき、その後は閲覧できなくなりました。しかし、後でネットワーク内の他のすべてのマシンからサーバーにアクセスできました ( http://remote.hostname:8081/nexusを使用)。
次に、ストレージ ディレクトリのすべての内容を古いサーバー マシンからコピーし、新しいマシンに 1 つずつ貼り付けました。(すべてのリポジトリについて、新しいサーバーにリポジトリを作成しlocal storage Location
、古いサーバーからコピーしたディレクトリとして指定しました)。これで、持っていたすべての瓶を見ることができますが、maven からそれらを使用しようとすると、そうすることができません。つまり、Maven プロジェクトを実行しようとすると、依存関係が見つからないと表示されます。新しいサーバー内の正確な場所で jar を探していることがわかりますが、ダウンロードに失敗しています。jarファイルをダウンロードできない理由は何ですか?
また、サーバー マシンのブラウザから新しい nexus サーバーにアクセスできないのはなぜですか? 任意の提案をいただければ幸いです。ありがとう。
====更新====
Maven をいじってみると、パブリック リポジトリからは依存関係にアクセスできるが、特定の 1 つのリポジトリからはアクセスできないことがわかりました (これまでのところ、私が認識しているのは 1 つだけです)。これは何らかの理由によるものでしょうか?移行の問題が間違っているのではないかと思いますが、あるサーバーから別のサーバーに移行する適切な方法ですか?
また、すべてのプロキシ リポジトリのステータスはIn service-Remote automatically blocked and unavailable
です。これはどういうわけか私の問題に関連していますか?
===Settings.xml===
<settings>
<localRepository>${env.TEST_HOME}\maven.repository</localRepository>
<proxies>
<proxy>
<id>Compproxy</id>
<active>true</active>
<protocol>http</protocol>
<username></username>
<password></password>
<host>proxy.abc.com</host>
<port>81</port>
<nonProxyHosts>*.abc.com|rick*</nonProxyHosts>
</proxy>
</proxies>
<servers>
<server>
<id>MyRep</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<mirrors>
<mirror>
<id>central mirror</id>
<url>http://rick1.abc.com:8081/nexus/content/groups/public</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>opensymphony mirror</id>
<url>http://rick1.abc.com:8081/nexus/content/groups/public</url>
<mirrorOf>opensymphony</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>actProf</id>
<repositories>
<repository>
<id>public</id>
<url>http://rick1:8081/nexus/content/groups/public</url>
</repository>
<repository>
<id>MyRep</id>
<url>http://rick1:8081/nexus/content/repositories/MyRep</url>
</repository>
</repositories>
<properties>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>actProf</activeProfile>
</activeProfiles>
</settings>
===pom.xml===
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.abc.test</groupId>
<artifactId>testgui_start</artifactId>
<packaging>pom</packaging>
<version>1</version>
<name>Start POM Test GUI</name>
<url>www.abc.com</url>
<build>
<plugins>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.abc.test</groupId>
<artifactId>testgui</artifactId>
<version>${version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>