<!--先下载jar包,然后在仓库中手动安装,下面是遇到的两个例子-->
<!--第一个-->
mvn install:install-file -Dfile=D:\kaptcha-2.3.jar -DgroupId=com.google.code.kaptcha -DartifactId=kaptcha -Dversion=2.3 -Dpackaging=jar -DgeneratePom=true
<!--第二个-->
mvn install:install-file -Dfile=D:\fastdfs-client-java-1.27-RELEASE.jar -DgroupId=org.csource -DartifactId=fastdfs-client-java -Dversion=1.27-RELEASE -Dpackaging=jar -DgeneratePom=true

这样做如果还是遇到依赖无法下载,需要检查一下maven的配置文件,conf下的setting.xml文件中是否设置了代理。代理需要设置正确。

<proxies>
    <proxy>
        <id>optional</id>
        <active>true</active>
        <protocol>http</protocol>
        <username></username>
        <password></password>
        <host>你的域名</host>
        <port>你的端口</port>
        <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
</proxies>

相关文章:

  • 2021-09-13
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2021-09-24
  • 2021-04-26
  • 2021-06-20
  • 2021-04-29
  • 2021-08-29
  • 2021-11-24
相关资源
相似解决方案