因为存在漏洞,我更新了jetty版本,从1.1.14到2.0.8。据我在 jetty-util 上看到的,它具有相同的依赖关系。
如果我运行该项目,我会遇到错误:
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/AutoLock
at org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher
1.1.14:
[INFO] +- org.eclipse.jetty:jetty-reactive-httpclient:jar:1.1.14:compile
[INFO] | +- org.reactivestreams:reactive-streams:jarsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss:1.0.4:compile
[INFO] | \- org.eclipse.jetty:jetty-client:jar:9.4.51.v20230217:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.4.51.v20230217:compile
[INFO] | | \- org.eclipse.jetty:jetty-util:jar:9.4.51.v20230217:compile
[INFO] | \- org.eclipse.jetty:jetty-io:jar:9.4.51.v20230217:compile
2.0.8:
[INFO] +- org.eclipse.jetty:jetty-reactive-httpclient:jar:2.0.8:compile
[INFO] | +- org.reactivestreams:reactive-streams:jar:1.0.4:compile
[INFO] | \- org.eclipse.jetty:jetty-client:jar:9.4.51.v20230217:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.4.51.v20230217:compile
[INFO] | | \- org.eclipse.jetty:jetty-util:jar:9.4.51.v20230217:compile
[INFO] | \- org.eclipse.jetty:jetty-io:jar:9.4.51.v20230217:compile```
Why? how can i resolve this?
tried all of the versions, checked the dependencies.
maven clean, clean install, all the versions, include util.