Elliotte Rusty Harold opened MSHARED-1299 and commented
See apache/maven-enforcer#289 where this bug occurred.
A dependency on javax.annotation-api is indeed used by enforcer-rules/pom.xml. However, the dependency analyzer reports it as unused.
Might involve annotations with source only retention, except that if we remove the declaration then the dependency analyzer reports it as used but undeclared.
No further details from MSHARED-1299