java – maven clean install不从本地存储库中获取jar
作者:互联网
我试图从命令行运行mvn clean install命令.它在一个位置尝试从远程位置下载jar.
[INFO] Deleting directory C:\Users\212368997\ruchita_pdm_laptop\vobs\iui\src\newsrc\xr-service-impl\target
[INFO] [resources:resources]
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
Downloading: http://3.204.29.172:8081/artifactory/repo1/com/gehc/xr/wf/DuifEventsData/1.0.0-SNAPSHOT/DuifEventsData-1.0.0-SNAPSHOT.jar
[WARNING] Unable to get resource 'com.gehc.xr.wf:DuifEventsData:jar:1.0.0-SNAPSHOT' from repository xr-workflow-repository (http://3.204.29.172:8081/artifactory/repo
1): Error transferring file: Connection timed out: connect
Downloading: http://3.204.29.172:8081/artifactory/repo1/com/gehc/xr/wf/DuifEventIdVal/1.0.0- SNAPSHOT/DuifEventIdVal-1.0.0-SNAPSHOT.jar
并且该过程停止.
我有
DuifEventsData-1.0.0-SNAPSHOT.jar
在.m2文件夹中的本地存储库中的jar然后它也试图从[(http://3.204.29.172:8081 / …)下载jar
这是什么解决方案?
解决方法:
尝试运行maven离线mvn clean install -o.这将从您的本地存储库中选择罐子,即.m2.正如您所提到的,jar已经在本地仓库中,如果所有其他依赖项也在本地,那么这将有效.
标签:java,maven,command-prompt 来源: https://codeday.me/bug/20190708/1406745.html