Why you need it?
https://github.com/seata/seata/blob/develop/sqlparser/seata-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/DruidIsolationClassLoader.java
为了保证我们使用的druid与用户的隔离,目前采用了classloader形式隔离,导致了在这个包名路径下用户无法扩展sqlparser的问题,希望通过maven-shade-plugin插件来达到去除DruidIsolationClassLoader,并保证我们与用户的druid无依赖冲突
How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.
Other related information
Add any other context or screenshots about the feature request here.
3条答案
按热度按时间bwitn5fc1#
现在大概能想到的方案有两个 @a364176773
现在datastax对于guava的处理就是第2种方案 https://github.com/orgs/datastax/repositories?type=all
dnph8jn42#
现在大概能想到的方案有两个 @a364176773
现在datastax对于guava的处理就是第2种方案 https://github.com/orgs/datastax/repositories?type=all
@slievrly@jsbxyyx PTAL
omqzjyyz3#
方案1我个人也不是很赞成,方案2的话有助于编写测试用例,否则因为还未打包shade未生效,无法测试shade的能力是否生效