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

删除.m2文件夹重新开始后,使用maven更新并选中强制更新选项后,当我尝试启动tomcat时,我收到以下错误,


Publishing failed with multiple errors

Error reading file C:\Users\***\.m2\repository\ca\juliusdavies\not-yet-commons-ssl\0.3.17\not-yet-commons-ssl-0.3.17.jar

C:\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.jar

C:\Users\***\.m2\repository\org\opensaml\opensaml\2.6.6\opensaml-2.6.6.jar (The system cannot find the file specified)

我可以从哪个存储库安全地下载这些jar文件,以及如何手动将它们包含在项目中?


12345678_0001
浏览 59回答 1
1回答

ABOUTYOU

首先,您需要在本地系统上下载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>&nbsp; <groupId>your.groupID</groupId>&nbsp; <artifactId>your.artifactId</artifactId>&nbsp; <version>your.version</version></dependency>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java