为了账号安全,请及时绑定邮箱和手机立即绑定

如何手动包含由于防火墙限制而导致 maven 更新无法获取的 jar 文件

如何手动包含由于防火墙限制而导致 maven 更新无法获取的 jar 文件

12345678_0001 2022-09-22 20:09:32
删除.m2文件夹重新开始后,使用maven更新并选中强制更新选项后,当我尝试启动tomcat时,我收到以下错误,Publishing failed with multiple errorsError reading file C:\Users\***\.m2\repository\ca\juliusdavies\not-yet-commons-ssl\0.3.17\not-yet-commons-ssl-0.3.17.jarC:\Users\***\.m2\repository\ca\juliusdavies\not-yet-commons-ssl\0.3.17\not-yet-commons-ssl-0.3.17.jar (The system cannot find the file specified)Error reading file C:\Users\***\.m2\repository\org\opensaml\opensaml\2.6.6\opensaml-2.6.6.jarC:\Users\***\.m2\repository\org\opensaml\opensaml\2.6.6\opensaml-2.6.6.jar (The system cannot find the file specified)我可以从哪个存储库安全地下载这些jar文件,以及如何手动将它们包含在项目中?
查看完整描述

1 回答

?
ABOUTYOU

TA贡献1812条经验 获得超5个赞

首先,您需要在本地系统上下载jar。然后使用以下命令进行安装:


cd <path that includes your .jar file>

mvn install:install-file -Dfile=<jarfile.jar> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<jar>

、 和 需要与它们在versiongroupIdartifactIdpackagingpom.xml


<dependency>

  <groupId>your.groupID</groupId>

  <artifactId>your.artifactId</artifactId>

  <version>your.version</version>

</dependency>


查看完整回答
反对 回复 2022-09-22
  • 1 回答
  • 0 关注
  • 58 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信