未找到 Base64.encodeBase64String [英] Base64.encodeBase64String not found
问题描述
我在尝试编译 Jira 插件(执行 atlas-run)时遇到问题.
I'm having problems when trying to compile my Jira plugin (executing atlas-run).
构建失败并出现此错误:
The build fails with this error:
找不到符号符号:方法 encodeBase64String(byte[])位置:类 org.apache.commons.codec.binary.Base64
似乎构建正在尝试使用 commons-codec 1.3 jar 而不是 1.4+
it seems like the build is trying to use commons-codec 1.3 jar instead of 1.4+
在我的 IDE (jIDEA) 中,我将库路径从 1.3 更改为 1.6.jar(因为它也无法识别 encodeBase64String 方法).
from my IDE (jIDEA) I've changed the library path from 1.3 to 1.6.jar (because it wasn't recognizing the encodeBase64String method either).
我也尝试将此依赖项添加到我的 pom.xml 中:
I also tried adding this dependency to my pom.xml:
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.6</version>
<scope>provided</scope>
</dependency>
但是 atlas-run 仍然失败.
But atlas-run stills failing.
有人知道如何解决这个问题吗?
Does somebody know how to fix this?
谢谢!!
推荐答案
有点晚,但下载 commons-codec-1.10-rep.jar
并将其添加为库可以解决问题.
A bit late, but downloading commons-codec-1.10-rep.jar
and adding it as a library fixes the problem.
这篇关于未找到 Base64.encodeBase64String的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!