Base64.encodeBase64String not found

柔情痞子 提交于 2019-12-24 04:23:11

问题


I'm having problems when trying to compile my Jira plugin (executing atlas-run).

The build fails with this error:

cannot find symbol symbol : method encodeBase64String(byte[]) location: class org.apache.commons.codec.binary.Base64

it seems like the build is trying to use commons-codec 1.3 jar instead of 1.4+

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).

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>

But atlas-run stills failing.

Does somebody know how to fix this?

Thanks !!


回答1:


A bit late, but downloading commons-codec-1.10-rep.jar and adding it as a library fixes the problem.



来源:https://stackoverflow.com/questions/20703573/base64-encodebase64string-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!