Deny access to certain class files in a dependency jar

蓝咒 提交于 2019-12-13 05:32:22

问题


I have to include a jar file because I need certain classes in it in my dynamic web project.

My problem is that this jar contains an old version of apache.commons.io. BUT in my dynamic web project I have also included a newer version of apache.commons.io.

Now I want to avoid java to use the old version of apache.commons.io in my dynamic web project. Is there any way to tell java not to use classes in a certain folder in my jar?

来源:https://stackoverflow.com/questions/20588367/deny-access-to-certain-class-files-in-a-dependency-jar

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