Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.google.code.kaptcha #2

Open
geek41 opened this issue Feb 1, 2019 · 2 comments
Open

com.google.code.kaptcha #2

geek41 opened this issue Feb 1, 2019 · 2 comments

Comments

@geek41
Copy link

geek41 commented Feb 1, 2019

这个依赖在public repositories 找不到了

@linzongjing
Copy link

kaptcha是google开源的一个非常实用的验证码生成工具类,可以利用kaptcha生成各种各样的验证码,但是它没有上传到maven中央仓库。kaptcha的工作原理是调用com.google.code.kaptcha.servlet.KaptchaServlet生成一个验证码,相应给客户端,同时将生成的验证码字符串存到HttpSession中
使用时的pom依赖

    <dependency>
        <groupId>com.google.code.kaptcha</groupId>
        <artifactId>kaptcha</artifactId>
        <version>2.3</version>
    </dependency>

下载地址:

http://mvnrepository.com/artifact/com.google.code.kaptcha/kaptcha/2.3

然后添加到本地Maven库中:

在下载的文件目录下打开命令行,执行命令

mvn install:install-file -Dfile=kaptcha-2.3.jar -DgroupId=com.google.code.kaptcha -DartifactId=kaptcha -Dversion=2.3 -Dpackaging=jar

@linzongjing
Copy link

然后打包编译都通过运行提示找不到这个包,
image
勾选Delegate IDE build/run actions to Maven

直接run默认是在IDE里运行的,应该把构建操作委托给maven.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants