为什么打包的时候请求jboss-public-repository过不去?

[INFO] --- maven-assembly-plugin:3.1.0:single (make-assembly) @ linker ---

[INFO] Reading assembly descriptor: package.xml

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-profile/2.2.0/maven-profile-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-profile/2.2.0/maven-profile-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-profile/2.2.0/maven-profile-2.2.0.pom (0 B at 0 B/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-artifact/2.2.0/maven-artifact-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/2.2.0/maven-artifact-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact/2.2.0/maven-artifact-2.2.0.pom (0 B at 0 B/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-repository-metadata/2.2.0/maven-repository-metadata-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-repository-metadata/2.2.0/maven-repository-metadata-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-repository-metadata/2.2.0/maven-repository-metadata-2.2.0.pom (0 B at 0 B/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-error-diagnostics/2.2.0/maven-error-diagnostics-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-error-diagnostics/2.2.0/maven-error-diagnostics-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-error-diagnostics/2.2.0/maven-error-diagnostics-2.2.0.pom (1.7 kB at 2.9 kB/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-project/2.2.0/maven-project-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-project/2.2.0/maven-project-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-project/2.2.0/maven-project-2.2.0.pom (0 B at 0 B/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-artifact-manager/2.2.0/maven-artifact-manager-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact-manager/2.2.0/maven-artifact-manager-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-artifact-manager/2.2.0/maven-artifact-manager-2.2.0.pom (0 B at 0 B/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-plugin-registry/2.2.0/maven-plugin-registry-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-registry/2.2.0/maven-plugin-registry-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-registry/2.2.0/maven-plugin-registry-2.2.0.pom (0 B at 0 B/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-plugin-api/2.2.0/maven-plugin-api-2.2.0.pom

[INFO] Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/2.2.0/maven-plugin-api-2.2.0.pom

[INFO] Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-plugin-api/2.2.0/maven-plugin-api-2.2.0.pom (1.5 kB at 3.1 kB/s)

[INFO] Downloading from jboss-public-repository: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/maven-plugin-descriptor/2.2.0/maven-plugin-descriptor-2.2.0.pom


评论区

JFinal

2020-02-14 19:29

所有提示都是 INFO, 因此并不是产生了异常

可能是 repository.jboss.org 这个地址的下载非常慢,多等待一定的时间即可

johalin

2020-02-18 20:02

@JFinal 试了这么多天,总是jboss-public-repository请求资源的时候下载不来,而且有些请求链接直接用浏览器打开是404,反正不管晚上和白天,网速很好,也无法编译通过。。。。。就是开始运行 Reading assembly descriptor: package.xml 这个文件的时候就卡住了

johalin

2020-02-18 20:04

@JFinal 如何让打包的时候不请求jboss-public-repository资源库,也修改过maven配置了,但还是要请求、、、

JFinal

2020-02-18 20:46

@johalin 从来没碰到这种情况,或许是你的项目对某个第三方有依赖,或许是你的 maven 配置有问题

建议通过对官网的 jfinal demo 打包测试一下,用这种排除法一步步定位问题

johalin

2020-02-19 15:39

@JFinal 直接运行jfinal-4.8_demo_for_maven项目也不能打包成功,运行到jboss-public-repository资源库卡住了,maven配置也是参照文档配置的的。怪事。。。。。

johalin

2020-02-21 15:54

@JFinal 我找着问题了,原因是运行Reading assembly descriptor: package.xml配置文件的时候,总是需要请求jboss-public-repository资源库,可能是你们jfinal-4.8_demo_for_maven项目某个jar包里面有默认的配置文件必须请求名称为jboss-public-repository的资源库,所以我就修改了maven的setting.xml文件,把jboss-public-repository资源库名称的url重新指向了阿里云的资源库,修改如下:

jboss-public-repository


jboss-public-repository-group
JBoss Public Maven Repository Group
http://maven.aliyun.com/nexus/content/groups/public/
default

true
never


true
never






jboss-public-repository-group
JBoss Public Maven Repository Group
http://maven.aliyun.com/nexus/content/groups/public/
default

true
never



false
never





然后请求地址就发生了变化,瞬间编译完成:
[INFO] Downloaded from jboss-public-repository-group: http://maven.aliyun.com/nexus/content/groups/public/jdom/jdom/1.0/jdom-1.0.jar (153 kB at 282 kB/s)
结果就请求了阿里云的地址;

而之前不成功的原因就是因为原先的默认的jboss资源库url是访问不到或者很慢,之前尝试修改成如下:

alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central


jboss-public-repository-group
central
JBoss Public Repository Group
http://maven.aliyun.com/nexus/content/groups/public/

也是不行的,继续编译的过程中卡主下载,希望其他人遇到我这个问题可以相同方式解决!

johalin

2020-02-21 15:56

@JFinal 无法发送配置文件格式,其实就是修改setting.xml里面的profiles节点;

Hisos

2020-03-14 21:39

@johalin 谢谢,我也遇到同样的问题。

laozairitian

2020-04-02 16:46

@johalin 这些参数对应的标签是什么

laozairitian

2020-04-03 10:56

我把maven的setting.xml里阿里云镜像的mirror标签的id改成central成功解决问题了

吕志潮

2020-06-06 18:18

注释掉pom文件里的maven插件,使用配置阿里云镜像的maven工具打包即可

凉月

2020-08-19 17:44


alimaven
*
aliyun maven
https://maven.aliyun.com/repository/public


mirrorOf里改成*,*代表所有都走这里,你原来可能是central

热门反馈

扫码入社