dev1
dev1

Reputation: 83

ENUNCIATE error: cannot access javax.interceptor.InterceptorBinding

I have a multi module maven project, recenty I added jaxrs-api dependency to one of them.

<dependency>
   <groupId>org.jboss.resteasy</groupId>
   <artifactId>jaxrs-api</artifactId>
   <version>3.0.12.Final</version>
</dependency>

ENUNCIATE version: 2.0.0. When trying maven clean install, I get this error:

[WARNING] [ENUNCIATE] [javac] [ERROR] null:-1:-1 error: cannot access javax.interceptor.InterceptorBinding
[WARNING] [ENUNCIATE] [javac] error: cannot access javax.interceptor.InterceptorBinding
[WARNING] [ENUNCIATE] [javac]   class file for javax.interceptor.InterceptorBinding not found
[WARNING] [ENUNCIATE] [javac]   Consult the following stack trace for details.
[WARNING] [ENUNCIATE] [javac]   com.sun.tools.javac.code.Symbol$CompletionFailure: class file for javax.interceptor.InterceptorBinding not found
*****
[ERROR] Failed to execute goal com.webcohesion.enunciate:enunciate-maven-plugin:2.13.2:assemble (default) on project API: Enunciate compile failed. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.webcohesion.enunciate:enunciate-maven-plugin:2.13.2:assemble (default) on project API: Enunciate compile failed.

I tried to add explicitly InterceptorBinding dependency, but didn't work.

<dependency>
   <groupId>javax.interceptor</groupId>
   <artifactId>javax.interceptor-api</artifactId>
   <version>1.2.2</version>
</dependency>

Thanks for help!

Upvotes: 0

Views: 806

Answers (1)

Gerold Broser
Gerold Broser

Reputation: 14762

com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0 is from 29-Sep-2015. Use the latest version 2.13.3 instead.

Upvotes: 0

Related Questions