How to use Null-Annotation compiler in Maven builds?

Hello,

What's the best way to use Null-Annotation compiler in Maven builds? Do you
provide maven plugin for it?



Thank you,

Alex


4 comments
Comment actions Permalink

AFAIK you don't need a specific compiler, just add the IDEA redistributable annotations.jar to your pom's classpath, and it should work

THis jar is found in IDEA's redist folder

0
Comment actions Permalink

That's for IDEA static analysis however there is IDEA ant task javac2 which
compiles java sources and applies runtime checks on @NotNull parameters.
That's what I want to be able to use in Maven (I am switching from Ant to
Maven) instead or in conjunction with its compile plugin

"Thibaut" <no_reply@jetbrains.com> wrote in message
news:10317416.1204059916249.JavaMail.itn@is.intellij.net...

AFAIK you don't need a specific compiler, just add the IDEA
redistributable annotations.jar to your pom's classpath, and it should
work

>

THis jar is found in IDEA's redist folder



0
Comment actions Permalink

Thank you Stephen,

Am I correct that it is impossible to do @NotNull processing under Maven at
the moment short of writing a plugin? The codehouse plugin only handles
forms it seems to me.

Thank you,
Alex



"Stephen Friedrich" <no_reply@jetbrains.com> wrote in message
news:4486040.1204112956792.JavaMail.itn@is.intellij.net...

http://www.jetbrains.net/jira/browse/IDEABKL-5247



0

Please sign in to leave a comment.