flinkx icon indicating copy to clipboard operation
flinkx copied to clipboard

maven package 一直 {s}->https://github.com:443: Connection reset

Open linbaicome opened this issue 3 years ago • 1 comments

按quickstart进行到 mvn clean package -DskipTests 时 一直在下载包,持续一个多小时,一直: Downloading: https://github.com/dtstack/maven-repository/raw/master/org/apache/flink/flink-hadoop-compatibility_2.12/1.12.7/flink-hadoop-compatibility_2.12-1.12.7.pom Apr 15, 2022 6:01:23 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://github.com:443: Connection reset Apr 15, 2022 6:01:23 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: Retrying request to {s}->https://github.com:443

需要怎么处理?

linbaicome avatar Apr 15 '22 14:04 linbaicome

解决: 1) mvn之前,修改pom.xml文件添加以下内容

<repository> <id>vdc</id> <url>http://nexus.saas.hand-china.com/content/repositories</url> </repository> <repository> <id>horton-works-releases</id> <url>http://repo.hortonworks.com/content/groups/public/</url> </repository> <repository> <id>mvn repository</id> <url>https://mvnrepository.com/artifact/</url> </repository> <repository> <id>CDH</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url> </repository>

2) ./$FLINKX_HOME/bin/install_jars.sh

3)mvn clean package -Dmaven.test.skip

linbaicome avatar Apr 22 '22 09:04 linbaicome