为了禁用我的maven项目的SSL证书有效性检查,我尝试了以下命令:
mvn clean install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
我发现了一个错误:
Unknown lifecycle phase ".wagon.http.ssl.insecure=true". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available
lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resou
rces, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy
maven的.wagon.http.ssl...
命令被废弃了吗?如果是的话,有解决办法吗?
发布于 2022-10-19 14:09:40
我知道我正在回答6个月前的问题,但我也犯了同样的错误,希望它能帮助到别人。
对我来说,解决方案是使用不同的终端应用程序。在windows 1064位上,在运行PS的Powershell/Windows终端中,相同的复制粘贴命令"mvn洁净包-Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.insecure=true -DskipTests“失败,但在标准cmd.exe中工作。
https://stackoverflow.com/questions/71731474
复制相似问题