Could not transfer artifact com.microsoft.sqlserver:mssql-jdbc:pom:7.4.1.jre8 from/to central


报错信息

Could not transfer artifact com.microsoft.sqlserver:mssql-jdbc:pom:7.4.1.jre8 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

报错原因

maven 项目的 pom.xml 依赖项 mssql-jdbc 微软不允许以maven的方式直接下载该文件

<dependency>
            <groupId>com.microsoft.sqlserver</groupId>
            <artifactId>mssql-jdbc</artifactId>
            <scope>runtime</scope>
        </dependency>

解决方法

阅读剩余部分

相关阅读 >>

apache maven 管理依赖

apache maven elipse ide

apache maven 环境配置

apache maven pom

apache maven netbeans

apache maven 快照

apache maven 自动化部署

apache maven 构建配置文件

apache maven 仓库

apache maven 创建工程

更多相关阅读请进入《maven》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...