警告 RESTEASY002145:NoClassDefFoundError

WARN RESTEASY002145: NoClassDefFoundError

我正在为以下错误而苦苦挣扎

15:37:08.538 [main] - WARN RESTEASY002145: NoClassDefFoundError: Unable to load builtin provider org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider from jar:file:/Users/nikulkarni/.m2/maven.repo/org/jboss/resteasy/resteasy-jackson2-provider/3.0.16.Final/resteasy-jackson2-provider-3.0.16.Final.jar!/META-INF/services/javax.ws.rs.ext.Providers
java.lang.NoClassDefFoundError: com/fasterxml/jackson/jaxrs/base/ProviderBase

我已经清理了我的 pom 并尝试尽可能多地消除冲突,还在下面添加了依赖项,但是这个错误仍然存​​在

<dependency>
    <groupId>com.fasterxml.jackson.jaxrs</groupId>
    <artifactId>jackson-jaxrs-providers</artifactId>
    <version>2.6.5</version>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.jaxrs</groupId>
    <artifactId>jackson-jaxrs-base</artifactId>
    <version>2.6.5</version>
</dependency>

我有点不知道该往哪里进一步看。任何指针将不胜感激。

您能否验证依赖项在您的 target/ 目录中可用并打包到您的 jar 或 war 中?