-
Notifications
You must be signed in to change notification settings - Fork 353
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
maven instruction incomplete #5007
Comments
THanks for the update. I made a specific ticket about the documentation in the hope it would prompt a review of the documentation more generally. I'm still not able to get the annotation processor to work in Maven for jdk8. I appreciate the documentation is there to provide a reference for the available options, but I find it very hard to follow this as a how-to. |
@delanym I'm sorry you are having trouble. I would like to help you, but unfortunately, from your description I cannot tell what is wrong nor reproduce your problem. I do know that many other people have followed the instructions successfully. Good luck! |
I've since upgraded to JDK11, and after learning how to configure the Mapstruct annotation processor I thought I'd have another go at getting Checkerframework to work. Here is my working profile <profile>
<id>checkerframework</id>
<activation>
<property>
<name>checkerframework</name>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker</artifactId>
<version>${dep.checkerframework}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths combine.children="append">
<path>
<groupId>org.checkerframework</groupId>
<artifactId>checker</artifactId>
<version>${dep.checkerframework}</version>
</path>
</annotationProcessorPaths>
<annotationProcessors combine.children="append">
<annotationProcessor>org.checkerframework.checker.nullness.NullnessChecker</annotationProcessor>
</annotationProcessors>
<compilerArgs combine.children="append">
<arg>-Awarns</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile> Hope you don't mind if I make some suggestions: The checkers should be grouped under a single heading. If you're set on a single page, you might want to use the same documentation system as https://junit.org/junit5/docs/current/user-guide/ The documentation https://checkerframework.org/manual/#maven mentions a bug in Maven compiler plugin, but this has been resolved. |
Thanks very much for your feedback. We appreciate your suggestions! I have opened two pull requests to address different parts of this issue: I'm not sure what you mean by "The checkers should be grouped under a single heading." Could you clarify? If you have other suggestions, please let us know, or open a pull request. (One thing that would be helpful to us is opening a new issue for each distinct problem/suggestion/improvement, so that we can be sure not to overlook any of them.) Thanks again. |
@mernst ill be happy to contribute to the Maven section of documentation once I know more about the framework. At the moment I'm just here to 'exploit' whatever improvements it can offer to the codebase I work on. I want to try out all the builtin checkers (without adding annotations to my code), but Im having a hard time finding them all.
I can see the documentation is coming from a research perspective. Personally, I would appreciate more of an implementation perspective. I guess it boils down to who you want your audience to be. |
If you search version 3.21.1 of https://checkerframework.org/manual/ for "annotatedJdk" you'll only get one result, which is the use of this variable. There is no assignment.
The text was updated successfully, but these errors were encountered: