Maven工程的jar包下载出现了(Could not transfer artifact org.mybatis:mybatis)

解决Maven工程jar包下载

  • 问题描述
  • 解决办法

问题描述:(Could not transfer artifact org.mybatis:myb)很大可能由于外网连接慢导致的,因此更换镜像源配置还有修改一些IDEA的配置。

解决办法

  • setting.xml配置
在setting.xml文件下配置一下阿里云镜像
        <mirror>
            <id>nexus-aliyunid>
            <mirrorOf>*,!jeecg,!jeecg-snapshotsmirrorOf>
            <name>Nexus aliyunname>
            <url>http://maven.aliyun.com/nexus/content/groups/publicurl>
        mirror>
  • IDEA配置

Maven工程的jar包下载出现了(Could not transfer artifact org.mybatis:mybatis)_第1张图片

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

你可能感兴趣的:(后端,maven,mybatis,xml,java,bug)