jakarta.annotation has moved to jakarta.annotation-api
See here: enter link description here
or just add the dependency (v3.0.0)
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>3.0.0</version>