Maven项目中,在pom.xml的</project>标签之前加入一下标签,指定使用阿里云仓库下载jar包。

<!-- 使用aliyun maven -->
    <repositories>
        <repository>
            <id>aliyun</id>
            <name>aliyun</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
        </repository>
    </repositories>

 

使用此方式指定下载源之后,不会根据Maven本地配置下载依赖。

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2021-12-01
  • 2022-12-23
  • 2021-05-29
  • 2022-02-15
  • 2021-09-25
  • 2021-08-03
相关资源
相似解决方案