Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Maven: Java modules wont' build without explicit <annotationProcessorPaths> #2325

Closed
priyanahata opened this issue Dec 31, 2019 · 1 comment

Comments

@priyanahata
Copy link

priyanahata commented Dec 31, 2019

Describe the bug
Upgrading from Java 8 to Java 13.

In Java 8, or non-jigsaw 13 (posibly 9+) listing lombok as a provided maven depdency was enough.

When building a Java module system, it seems that the documentation here:
https://projectlombok.org/setup/javac

And the documentation here:
https://projectlombok.org/setup/maven

Are missing the fact that when combining both maven and java 9+ modules, one needs to add the following to the maven-compiler-plugin

<annotationProcessorPaths>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                            <version>1.18.10</version>
                        </path>
</annotationProcessorPaths>

So, wether we call it a documentation bug or a feature request (not having to add that snippet) or a bug, would probably be a good idea to put it up clearly somewhere to save the "surfing through the issues list" to find the workaround. Seems like this "workaround" or "setup step" has been needed for a while and is not visible in the setup docs.

  • A lombok fanatic
@rspilker
Copy link
Collaborator

rspilker commented Jan 8, 2020

I've updated the source of the documentation. A new release of the website will contain your suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants