<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-exec</artifactId>
    <version>1.16.0</version>
    <scope>provided</scope>
</dependency>

在导入胖包时出现报错

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包。

此时pom中的没有报错而是idea中旁边的maven中org.apache.hive:hive-exex:2.3.4中的org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde报错,如图:

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

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

在网上查找后解决办法为修改mevan的镜像地址

<mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>*</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>
    
    <mirror>
        <id>aliyunmaven</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云spring插件仓库</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>

但是尝试后导致maven中其他的项目的包报错,而且问题还是未解决,直接导致我pom中的<project>报错,然后网上有些说,到自己的本地仓库看包下载好没,把其删掉再重新运行pom,

我尝试了但是还是没有解决,然后我看我本地已经下载好了包于是将

<scope>provided</scope>

改为

<scope>system</scope>
<systemPath>自己仓库包的路径</systemPath>

改为后重现刷新一下pom发现之前的问题终于解决了,真的是试了好多种方式,终于是解决了。