这里写目录标题
- 错误描述
- 解决方案
<dependencies>
<!-- https://mvnrepository.com/artifact/com.google.ortools/ortools-java -->
<dependency>
<groupId>com.google.ortools</groupId>
<artifactId>ortools-java</artifactId>
<version>9.7.2996</version>
</dependency>
</dependencies>
错误描述
需要在idea中调用ortools api接口,将ortools依赖写入pom.xml,如下:
写入后报错如下:
鼠标放在代码编辑区红色报错代码上显示:
crlt+alt+s快捷键调出Repositories查看发现https://repo.maven.apache.org/maven2报错
解决方案
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
参考:
- https://blog.csdn.net/early_linzi/article/details/119785705
- https://huaweidevelopers.csdn.net/648c32dc55c3e102e65f9268.html?dp_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTIyMTc0MiwiZXhwIjoxNjk1NzM5NDUwLCJpYXQiOjE2OTUxMzQ2NTAsInVzZXJuYW1lIjoicXFfNDMyNzY1NjYifQ.drQDJ7S-cYmCU7vr4dcV6yKUMvuAeXjm1fXNcABscvM