解决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>

在这里插入图片描述

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

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

  • 14
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
回答: 这个报错信息表示在执行命令时,Maven无法在配置的远程仓库找到org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde这个包。\[1\]\[2\]根据引用\[3\]Ideahive的依赖命令,你可以尝试在你的pom.xml文件添加以下依赖项来解决这个问题: <dependency> <groupId>org.pentaho</groupId> <artifactId>pentaho-aggdesigner-algorithm</artifactId> <version>5.1.5-jhyde</version> </dependency> 请确保你的Maven配置正确,并且远程仓库确实存在这个包。如果问题仍然存在,你可以尝试检查你的网络连接或者尝试使用其他可用的远程仓库来下载这个包。 #### 引用[.reference_title] - *1* *3* [Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde解决方法](https://blog.csdn.net/QQ3434223245/article/details/115842648)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde 解决方案](https://blog.csdn.net/Tangnin/article/details/125541627)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

似懂非dong

你的肯定使我加倍努力

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

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

打赏作者

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

抵扣说明:

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

余额充值