in Development

@PostConstruct not working?

If using Java11+ the javax.annotation package is no longer part of the distribution, as per JSR-175 missing annotations do not trigger “missing class” or similar exceptions.
So look out when updating from sub-Java11 to there. Solution? Add

<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>

Another gotcha is when using vaadin, it has it’s own CDI dependency:

<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>