Changing maven compiler to javac-with-errorprone

14 views
Skip to first unread message

Ullrich Hafner

unread,
Sep 8, 2018, 4:58:49 PM9/8/18
to Jenkins Developers
Do we have some special hacks for the maven compiler in our maven hpi plug-in?
I tried to replace the default javac compiler with javac-with-errorprone and get the following compile error:

java.nio.file.NoSuchFileException: /Users/hafner/Development/git/warnings-plugin/target/classes/META-INF/annotations/hudson.Extension

Is error-prone [1] not supported (during the compile phase) for plugins?

[1] https://errorprone.info
signature.asc

Jesse Glick

unread,
Sep 10, 2018, 12:55:50 PM9/10/18
to Jenkins Dev
On Sat, Sep 8, 2018 at 4:58 PM Ullrich Hafner <ullrich...@gmail.com> wrote:
> java.nio.file.NoSuchFileException: /Users/hafner/Development/git/warnings-plugin/target/classes/META-INF/annotations/hudson.Extension

Sounds like a SezPoz incompatibility.

> Is error-prone [1] not supported (during the compile phase) for plugins?

You may be the first to try it. FindBugs is of course supported.
Reply all
Reply to author
Forward
0 new messages