-
Notifications
You must be signed in to change notification settings - Fork 17
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
[MPOM-453] Disable annotation processing by compiler #157
Conversation
This can be a problem, as no way to override this later (only in java 20? "full"?) @bmarwell will tell 😄 |
We use |
With a grain of salt... I'd rather define |
I think it is best practice to only enable annotation processors by their fully qualified class name. This is possible by setting https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#annotationProcessors. This should IMHO take precedence (but I haven’t checked) over proc being none. |
I need more tests ... like possibility to override |
We could introduce a property, eg I think the way to go is to introduce a new default lifecycle in the compiler plugin in both the compile and test compile Mojos. This means running a new execution I do this in all of my projects like this. However, not sure how incremental works with this proposal. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me as of now. Maybe we can look into a project using an annotation processor to make use of the two phases I mentioned and see what we get from it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would appreciate some comment in the code for the property
0ad1425
to
434d558
Compare
No description provided.