This appears to be due to javax.transaction.Transactional (or any other class in your classpath for that matter) being itself annotated with javax.interceptor.InterceptorBinding, which is missing in classpath unless explicitly declared in dependencies:
@Inherited
@InterceptorBinding // <-- this ONE is causing troubles
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface Transactional {
Said that:
javax.transaction.Transactional– comes with javax.transaction:javax.transaction-api:1.+ (ororg.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.0.0.Final) and is typically used in JPA/ORM/JMS apps to annotate transactional methods.javax.interceptor.InterceptorBinding– should come with javax.interceptor:javax.interceptor-api:1.+. But, although declared on top ofTransactional, is not required for normal operation and (looks like because of this) is not getting fetched as a transitive dependency of your JPA framework.
As a result JDK8 javadoc tool fails to process the sources (if any of them are annotated with @Transactional).
Although it could be more specific about the place where this “error” has been found.
Issue fix: adding javax.interceptor:javax.interceptor-api:1.+ dependency fixes the issue.
<dependency>
<groupId>javax.interceptor</groupId>
<artifactId>javax.interceptor-api</artifactId>
<version>1.2.2</version>
</dependency>
Note (January 2020): the latest (plausible) version is currently 1.2.2 (see https://mvnrepository.com/artifact/javax.interceptor/javax.interceptor-api