Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde解决方法

Idea中hive的 org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde 包导入问题及解决

idea导入hive依赖命令:

    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-client</artifactId>
      <version>2.7.3</version>
    </dependency>
    <dependency>
      <groupId>org.apache.hive</groupId>
      <artifactId>hive-exec</artifactId>
      <version>2.1.1</version>
    </dependency>
    <dependency>
      <groupId>org.pentaho</groupId>
      <artifactId>pentaho-aggdesigner-algorithm</artifactId>
      <version>5.1.5-jhyde</version>
      <scope>test</scope>
    </dependency>

这个2.1.1是hive安装的版本,刚开始学时不是很清楚,或者没有认真听课。

问题的描述

在执行命令时有一个报错,就是

Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde in nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public)

意思是在我引用的这个网址的库里没有我需要的那个org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde包

问题的解决

既然是没有这个库,那我就找呗,后来百度了好久,然后一直都没有找到含有这个包的库。https://maven.aliyun.com/ 这里面有好多好多库,然后我一个一个的翻源地址,就没有一个有的。。。。当时真的是火冒三丈!
后来在https://www.cnblogs.com/yxym2016/p/13218026.html这篇文章里发现这位前辈解决了这个问题,,我就仿佛看到了希望。然后我引用了这两个库

</mirror>
    <mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>spring-plugin</name>
    <url>https://maven.aliyun.com/repository/spring-plugin</url>
 </mirror>

 <mirror> 
    <id>repo2</id> 
    <name>Mirror from Maven Repo2</name> 
    <url>https://repo.spring.io/plugins-release/</url> 
    <mirrorOf>central</mirrorOf> 
 </mirror>

但是还是报错,我又换成了上述阿里云库的源地址库,还是不行。后来查看错误发现,好像是源地址访问失败,大概是需要翻墙吧。但是我却又仿佛看到了希望般,把其他的几个库都注释掉,只引用这个源地址对应的阿里云库:

</mirror>
    <mirror>
    <id>aliyun</id>
    <mirrorOf>*</mirrorOf>
    <name>spring-plugin</name>
    <url>https://maven.aliyun.com/repository/spring-plugin</url>
 </mirror>

终于成功了,最后发现,就是和我本来所使用的,也是阿里云推荐的公共库发生了一点小冲突

	<mirror>
		<id>aliyunmaven</id>
		<mirrorOf>*</mirrorOf>
		<name>阿里云公共仓库</name>
		<url>https://maven.aliyun.com/repository/public</url>
	</mirror>

因为这个库里也有pentaho包,只不过里面的小包不一样,而且我原先的这个库是在最前面的,大概是优先访问了吧!最后我就把<id>aliyun</id>的库放到了<id>aliyunmaven</id>的前面,像这样就ok了!

像这样
最后附赠一份下载地址:https://public.nexus.pentaho.org/repository/proxy-public-3rd-party-release/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
我也是在上面的那位博客园大佬的文章里发现的。放到需要下载到的地址,把其他文件删掉,只留下这个jar包。再去idea下载依赖就可以了。
对了,setting.xml文件保存后idea要重新启动啊!
就感觉那位大佬有句话误导我了(没有,那就再加几个仓库呗,没有什么找不到包的问题是加几个仓库解决不了的,如果有,那么就多加几个)大家千万不要相信这句话啊,反正我不信了

  • 19
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论
引用:解决Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom 。 引用:Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar:2.7.7 in nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) 在配置springboot打包工具时遇到"Could not find artifact"错误提示通常是由于缺少依赖项或者Maven仓库中没有相应的依赖包。解决这个问题的方法有以下几种: 1. 检查项目的pom.xml文件,确保依赖项的信息正确并且没有拼写错误。可以尝试使用其他可用的Maven仓库或者更新Maven仓库的镜像,以便能够找到所需的依赖项。同时,还要确保Maven的本地仓库已经正确配置并且可用。 2. 如果在特定的仓库中无法找到所需的依赖项,可以尝试切换到其他可用的仓库或者添加新的仓库到项目的pom.xml文件中。比如,引用中的问题可以尝试切换到其他可用的仓库或者检查该仓库的可用性。 3. 确保网络连接正常,能够访问Maven仓库。有时候,网络连接不稳定或者防火墙设置会导致无法正常连接到Maven仓库,从而出现"Could not find artifact"错误。可以尝试重新建立网络连接或者更改网络设置来解决这个问题。 综上所述,解决"Could not find artifact"错误的方法包括检查依赖项的配置、切换到其他可用的仓库、确保网络连接正常和检查Maven仓库的镜像设置。希望这些方法能够帮助您解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [解决Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom](https://blog.csdn.net/weixin_44121790/article/details/116352371)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar](https://blog.csdn.net/a1004314120/article/details/128584548)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

君酌

你的鼓励将是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值