问答 flinkx 编译慢 一晚上没有编译完

flinkx 编译慢 一晚上没有编译完

   爱吃火锅    发布于 2022-01-20 14:42 最新回复 2022-01-21 10:50  来自于   铁柱  271  2

执行 mvn clean package -DskipTests

maven version : 3.2.5

settings.xml



<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<!--
| This is the configuration file for Maven. It can be specified at two levels:
|
| 1. User Level. This settings.xml file provides configuration for a single user,
| and is normally provided in ${user.home}/.m2/settings.xml.
|
| NOTE: This location can be overridden with the CLI option:
|
| -s /path/to/user/settings.xml
|
| 2. Global Level. This settings.xml file provides configuration for all Maven
| users on a machine (assuming they're all using the same Maven
| installation). It's normally provided in
| ${maven.conf}/settings.xml.
|
| NOTE: This location can be overridden with the CLI option:
|
| -gs /path/to/global/settings.xml
|
| The sections in this sample file are intended to give you a running start at
| getting the most out of your Maven installation. Where appropriate, the default
| values (values used when the setting is not specified) are provided.
|
|-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/Users/yangxiaochen/.m2/repository</localRepository>

<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>*,!cloudera</mirrorOf>
</mirror>
</mirrors>

</settings>







日志:

一月 20, 2022 2:07:17 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {s}->https://github.com:443: Connection reset
一月 20, 2022 2:07:17 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: Retrying request to {s}->https://github.com:443
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/io/netty/netty-all/4.1.6.Final/netty-all-4.1.6.Final.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/io/netty/netty-all/4.1.6.Final/netty-all-4.1.6.Final.pom (0 B at 0.0 KB/sec)
Downloading: https://github.com/dtstack/maven-repository/raw/master/io/netty/netty-parent/4.1.6.Final/netty-parent-4.1.6.Final.pom
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/io/netty/netty-parent/4.1.6.Final/netty-parent-4.1.6.Final.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/io/netty/netty-parent/4.1.6.Final/netty-parent-4.1.6.Final.pom (0 B at 0.0 KB/sec)
Downloading: https://github.com/dtstack/maven-repository/raw/master/com/101tec/zkclient/0.10/zkclient-0.10.pom
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/com/101tec/zkclient/0.10/zkclient-0.10.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/com/101tec/zkclient/0.10/zkclient-0.10.pom (0 B at 0.0 KB/sec)
Downloading: https://github.com/dtstack/maven-repository/raw/master/com/alibaba/fastjson/1.2.58/fastjson-1.2.58.pom
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/com/alibaba/fastjson/1.2.58/fastjson-1.2.58.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/com/alibaba/fastjson/1.2.58/fastjson-1.2.58.pom (0 B at 0.0 KB/sec)

2条回答
铁柱
回复于 2022-01-21 10:50

因为github的某些特殊原因,导致访问特别慢,可以尝试使用科学上网,获取更换下maven setting 配置。

0 0
邵磊
回复于 2022-02-10 15:30

http://dtstack-static.oss-cn-hangzhou.aliyuncs.com/2021bbs/files_user58/answer/6b261f66fcb02c238cab21e90981d77d..png 把这个位置注释掉,自己安装的maven配置成阿里云镜像

0 0
社区公告
  • 大数据领域最专业的产品&技术交流社区,专注于探讨与分享大数据领域有趣又火热的信息,专业又专注的数据人园地

最新活动更多
微信扫码获取数字化转型资料
钉钉扫码加入技术交流群