maven - Maven 卡住下载 maven-default-http-blocker
问题描述
我在这里构建提供的 Google Dataflow 模板。所以我正在运行命令:
mvn compile exec:java \
-Dexec.mainClass=com.google.cloud.teleport.templates.<template-class> \
-Dexec.cleanupDaemonThreads=false \
-Dexec.args=" \
--project=<project-id> \
--stagingLocation=gs://<bucket-name>/staging \
--tempLocation=gs://<bucket-name>/temp \
--templateLocation=gs://<bucket-name>/templates/<template-name>.json \
--runner=DataflowRunner"
但是,似乎编译卡在下载maven-default-http-blocker
。添加后的日志-X
是:
[DEBUG] Could not find metadata io.grpc:grpc-api/maven-metadata.xml in local (/Users/bli00/.m2/repository)
[DEBUG] Skipped remote request for io.grpc:grpc-api/maven-metadata.xml, locally cached metadata up-to-date
[DEBUG] Could not find metadata io.grpc:grpc-netty-shaded/maven-metadata.xml in local (/Users/bli00/.m2/repository)
[DEBUG] Skipped remote request for io.grpc:grpc-netty-shaded/maven-metadata.xml, locally cached metadata up-to-date
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for confluent (http://packages.confluent.io/maven/).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for ow2-snapshot (http://repository.ow2.org/nexus/content/repositories/snapshots).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for repository.jboss.org (http://repository.jboss.org/nexus/content/groups/public/).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for m2.dev.java.net (http://download.java.net/maven/2).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for m2.java.net (http://download.java.net/maven/2).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for glassfish-repository (http://maven.glassfish.org/content/groups/glassfish).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for maven2-repository.dev.java.net (http://download.java.net/maven/2/).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for java.net (http://download.java.net/maven/2).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for m1.java.net (http://download.java.net/maven/1).
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for sonatype-nexus-snapshots (http://oss.sonatype.org/content/repositories/snapshots).
[DEBUG] Could not find metadata net.minidev:json-smart/maven-metadata.xml in local (/Users/bli00/.m2/repository)
[DEBUG] Skipped remote request for net.minidev:json-smart/maven-metadata.xml, locally cached metadata up-to-date
[DEBUG] net.minidev:json-smart/maven-metadata.xml was not found in https://repository.apache.org/content/repositories/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not be reattempted until the update interval of apache.snapshots.https has elapsed or updates are forced
[DEBUG] Using transporter WagonTransporter with priority -1.0 for http://0.0.0.0/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://0.0.0.0/
Downloading from maven-default-http-blocker: http://0.0.0.0/net/minidev/json-smart/maven-metadata.xml
不确定 Maven 是如何工作的,但我已经尝试过mvn clean
并重新运行。我假设0.0.0.0
是我的本地缓存?知道如何进行吗?
解决方案
从 Maven 3.8.1 开始,http 存储库被阻止。
您需要将它们配置为您的镜像settings.xml
或用 https 存储库(如果存在)替换它们。
推荐阅读
- wordpress - 在 Wordpress 中添加页面加载功能
- html - 使用 CSS 动画元素的大小
- javascript - 池关闭mysql2不和谐机器人
- flutter - CircleAvatar 异常:flutter 中的图像数据句柄无效
- python - 从 OpenCV/cv2 到 nginx 服务器的 RTMP 流,但客户端只得到一个绿色窗口
- dynamics-crm - Dynamics CRM 365 的 DocuSign 集成 - GetSignatures 失败
- python - 蟒蛇 | 修改未绑定对象仍然修改两者
- r - Shiny传单地图中标记的选择性更新
- wso2 - 如何使用租户管理员凭据登录 WSO2 IS Analytics 门户?
- c++ - 在苹果 m1 上的 Clion 版本中找不到 bits/stdc++.h' 文件