Eclipse @NonNull annotations with Maven and Jenkins

I would like to use the new @NonNull annotation from Eclipse Juno, but the project I'm working on is based on Maven and deployed with Jenkins.

Is there a way that my annotations won't break code for other developers who don't use Eclipse and for Jenkins?

PS: Zero checking method parameters does not even work with Eclipse and the Maven plugin (the Maven plugin compiles without problems, but there is no error that occurs when calling a method with a zero parameter, even if @NonNull is annotated).

PS: See that my thread is several months old, is there something better pop up to get NonNull annotations with Maven?

+4
source share
1 answer

There is an Eclipse Bug to track the publication of these annotations in Maven Central.

The only work I see now is to manually download the jar and then publish it to my Maven internal repository.

UPDATE: to use it in maven builds, consider using Eclipse JDT instead of javac. It might help .

+2
source

All Articles