javax.annotation classes and Java 11 JDK
When migrating up ahead 3 releases of Java, the first thing one should consider is to update all the major dependencies. maven-compiler-plugin -> current version is 3.8.1, 2.5.1 is 7 years old. Try the following to resolve this error: java.lang.NoSuchMethodError: javax.annotation.Resource.lookup()Ljava/lang/String; Keep the dependency: <dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.3.1</version> </dependency> And explicitly add it as a … Read more