On rare occasions, when developing a Java class that extends WCMUsePojo class, you will get the error of “class file for aQute.bnd.annotation.ConsumerType not found“.
This problem can be easily solved by adding the dependency to your parent-pom.xml and core-pom.xml as shown below:
<!-- https://mvnrepository.com/artifact/biz.aQute.bnd/bndlib -->
The latest AEM maven archetype-20 comes pre-configured with this dependency.
During the time of development, an AEM engineer may have removed this maven dependency. https://github.com/adobe/aem-project-archetype/tree/aem-project-archetype-20