解决com.google.code.kaptcha 从maven中央仓库无法下载的解决方案

1、首先下载源码包:http://code.google.com/p/kaptcha/downloads/list

2、将解压后的文件中kaptcha-${version}.jar(kaptcha-3.2.2.jar)copy出来放到其他地方

3、命令行下进入第二步copy的jar包所在的文件夹下执行一下命令:mvn install:install-file -DgroupId=com.google.code -DartifactId=kaptcha -Dversion=2.3.2 -Dfile=/Users/dgq/Downloads/kaptcha-2.3.2.jar -Dpackaging=jar -DgeneratePom=true注意修改红色框中jar包文件所在位置。这时你的本地文件仓库就有了这个jar。




参考:https://segmentfault.com/a/1190000010109625

猜你喜欢

转载自blog.csdn.net/qq_35885488/article/details/80902631