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

问题描述 投票:0回答:1

删除.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文件,如何在项目中手动包含它们?

java spring maven tomcat spring-tool-suite
1个回答
4
投票

首先,您需要在本地系统上下载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>

qazxsw poi,qazxsw poi,qazxsw poi和qazxsw poi需要与你在version中的相同

groupId
© www.soinside.com 2019 - 2024. All rights reserved.