删除.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>
添加回答
举报
0/150
提交
取消