解决IDEA中打包时报:Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde问题

解决IDEA中打包时报:Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde问题


)

问题:今天写一个对JSON文件进行分析的UDF和UDTF程序,当我准备对程序进行打包上传到服务器的时候,却报了错这个错误:
Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde from/to spring-plugin (https://repo.spring.io/plugins-release/): Not authorized , ReasonPhrase: Unauthorized.

当这个错误出现我想着应该是缺少了pentaho-aggdesigner-algorithm下的5.1.5-jhyde这个jar包,然后我就去网上下载了,并将它上传到本地maven仓库中,结果问题依然没有解决。

在网上查了许多资料,都说需要在pom.xml 文件中添加下面的内容:

 <repositories>
      <repository>
          <id>spring-plugin</id>
          <url>https://repo.spring.io/plugins-release/</url>
      </repository>
  </repositories>

可是这个插件我已经添加了的,确实并没有什么作用。还有的就是直接添加pentaho-aggdesigner-algorithm依赖,可是也没有起到作用,最后才发现主要的错误在于from/to spring-plugin (https://repo.spring.io/plugins-release/,说明是在https://repo.spring.io/plugins-release/着url下无法下载到插件,于是又到网上查询如何更改maven下setting.xml文件中的镜像配置。

解决方案:
在maven下的setting.xml文件中加入下面的镜像配置内容

<mirror>
	<id>alimaven</id>
	<name>aliyun maven</name> 
	<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
	<mirrorOf>central</mirrorOf>
</mirror> 
   
 <mirror>
	<id>aliyunmaven</id>
	<mirrorOf>*</mirrorOf>
	<name>spring-plugin</name>
	<url>https://maven.aliyun.com/repository/spring-plugin</url>
</mirror>

在这里插入图片描述

问题得到解决
在这里插入图片描述

此次是我在解决了问题后,从头演示写下的这篇博文,希望能对刚好遇到的你起到作用,希望可以点赞、收藏。感谢!

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

似懂非dong

你的肯定使我加倍努力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值