How to attach jdkAnnotations to an Inspections build in TeamCity


I am working through our code inspection report and have a large number of "Magic Constant" warnings.  These do not appear when I run the inspection from within IntelliJ.

The error message I'm getting is: No IDEA annotations attached to the JDK DefaultTeamCityJDK (E:\apps\development-tools\\java\jdk1.7.0_21), some issues will not be found

A little research indicates that jdkAnnotations.jar is added to the jdk automatically within IntellliJ.

I am using a maven pom file as the project file type.  How do I go about attaching the annotations to the JDK for this Inspections build?



Please sign in to leave a comment.