Enunciate error:无法访问com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable

时间:2017-01-14 13:11:33

标签: java rest web jersey enunciate

我们正在使用enunciate v2.8.0在我们的项目中生成文档。此外,我们使用泽西2(org.glassfish.jersey v2.5.1)。

在构建REST模块时,enunciate maven插件会出现错误

" 错误:无法访问com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable "

我想,这意味着enunciate使用Jersey1并尝试在我们的项目中找到它,因为当我们有Jersey1依赖时 - 它工作正常。此外,enunciate inside还有Jersey1和Jersey2依赖项。 现在我找不到有关如何使用Jersey2切换enunciate的信息。

感谢您的任何信息。

1 个答案:

答案 0 :(得分:0)

添加:<jaxrs disabled="true" />的enunciate.xml对我有用。