我需要为其他人构建一个apache flink作业来部署。我想用proguard来混淆代码,但是仅仅用fat jar作为输入来运行它会给我带来一大堆错误,比如:
Note: scala.concurrent.forkjoin.LinkedTransferQueue$Node accesses a declared field 'waiter' dynamically
Maybe this is program field 'akka.dispatch.forkjoin.LinkedTransferQueue$Node { java.lang.Thread waiter; }'
Maybe this is program field 'org.apache.http.impl.conn.tsccm.WaitingThread { java.lang.Thread waiter; }'
Maybe this is program field 'scala.concurrent.forkjoin.LinkedTransferQueue$Node { java.lang.Thread waiter; }'
我已经尝试使用以下方法将scala排除在混淆之外:
-keep class scala.**
但它似乎被proguard忽视了。有没有人有这样的经验,也许可以建议我?谢谢!
暂无答案!
目前还没有任何答案,快来回答吧!