且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Optaplanner集成到Jira插件中

更新时间:2022-01-24 22:24:04

在运行时,您没有使用OptaPlanner所需的最低XStream版本.这就解释了其中一种新安全方法的NoSuchMethodError.

At runtime, you're not using the minimal XStream version that OptaPlanner requires. That explains the NoSuchMethodError on one of the new security methods.

在运行时放置一个断点(使用远程调试器),XStream.class.getPackage().getImplementationVersion()会告诉您正在使用的XStream版本以及它比optaplanner-core所需的XStream版本低.

Put a breakpoint at runtime (use a remote debugger) and XStream.class.getPackage().getImplementationVersion() will tell you what XStream version you're using and how it's lower from the one that optaplanner-core needs.

  • 也许JIRA有一个已经加载了xstream的父类加载器.
  • 也许您的插件的父Bom会覆盖该版本.运行mvn dependency:tree -Dverbose.