JDK8 — Error “class file for javax.interceptor.InterceptorBinding not found”

I encountered an error when I annotated one of my class with

@Transactional

and it is failing during javadocs generation.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (attach-javadocs) on project X: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - path/Classjava:25: warning - @param argument "transaction" is not a parameter name.
[ERROR] javadoc: error - com.sun.tools.doclets.internal.toolkit.util.DocletAbortException: com.sun.tools.doclets.internal.toolkit.util.DocletAbortException: com.sun.tools.doclets.internal.toolkit.util.DocletAbortException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for javax.interceptor.InterceptorBinding not found

From here, the fix is adding the javax.interceptor-api dependency.

<dependency>
<groupId>javax.interceptor</groupId>
<artifactId>javax.interceptor-api</artifactId>
<version>1.2</version>
</dependency>
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.