The type org.eclipse.jdt.annotation.NonNull cannot be resolved. It is indirectly referenced from required .class files
如何摆脱这个错误?
解决方案是包括以下依赖:
<dependency> <groupId>org.eclipse.jdt</groupId> <artifactId>org.eclipse.jdt.annotation</artifactId> <version>2.0.0</version> </dependency>