我无法在其中一个 linux 服务器(比如说 A)中下载 Maven 依赖项,它在下载时卡住了,同样在另一个 linux VM 中工作(比如说 B)。它卡在了下面 -
Downloading from central: https://repo.maven.apache.org/maven2/com/distra/switch/plugins/cartridge-validation/5.0.3-11-1/cartridge-validation-5.0.3-11-1.pom
我正在导出以下变量 -
export MAVAN_HOME="/apps/workspace/tools/apache-maven-3.8.6" export JAVA_HOME="$(jrunscript -e 'java.lang.System.out.println(java.lang.System.getProperty("java.home"));')" export PATH="${PATH}:/apps/workspace/tools/apache-maven-3.8.6/bin:$JAVA_HOME"
我的A VM应该能够下载像B这样的maven依赖项
mvn --version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /apps/apache-maven-3.8.6
Java version: 11.0.16, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.16.0.8-1.el8_6.x86_64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "4.18.0-372.19.1.el8_6.x86_64", arch: "amd64", family: "unix"