-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a note about other annotation processors to the maven example
Fixes #1187 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=311831016
- Loading branch information
1 parent
1341c4e
commit cedd31c
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,8 @@ | |
<artifactId>error_prone_core</artifactId> | ||
<version>2.3.5-SNAPSHOT</version> | ||
</path> | ||
<!-- Add any other annotation processors here, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tbroyer
Contributor
|
||
even if they are also on the project dependency classpath. --> | ||
</annotationProcessorPaths> | ||
</configuration> | ||
</plugin> | ||
|
This still breaks auto-discovery of annotation processors, especially when handed down from parent POMs. I ran into this when trying to add
hibernate-validator-annotation-processor
to a build that also used Lombok.The only reliable way to get possibly-multiple possibly-handed-down annotation processors working in a Maven project is to add them as dependency in scope
provided
:Please support that here as well, so
error-prone
can be used by more projects.