首先找到配置文件路径

windows版idea:

C:\Users${user}\AppData\Roaming\JetBrains\IntelliJIdea${idea.version}\jdbc-drivers\jdbc-drivers.xml

linux版idea

/home/ u s e r / . c o n f i g / J e t B r a i n s / I n t e l l i J I d e a {user}/.config/JetBrains/IntelliJIdea user/.config/JetBrains/IntelliJIdea{idea.version}/jdbc-drivers/jdbc-drivers.xml

标题更改此文件的对应内容

改之前的,用的中央仓库

  <artifact name="Apache Phoenix Client">
    <version version="4.15">
      <item type="maven" url="org.apache.phoenix:phoenix-client:4.15.0-HBase-1.5"/>
      <item type="license" url="https://download.jetbrains.com/idea/jdbc-drivers/Phoenix/LICENSE.txt"/>
    </version>
  </artifact>

改之后的,将重要窗口地址替换成阿里maven仓库地址

  <artifact name="Apache Phoenix Client">
    <version version="4.15">
      <item url="https://maven.aliyun.com/repository/public/org/apache/phoenix/phoenix-client/4.15.0-HBase-1.5/phoenix-client-4.15.0-HBase-1.5.jar"/>
    </version>   </artifact>

再重启idea即可

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐