IntelliJ IDEA 14.0.0 Web Help

Configuring Annotation Processing

In this section:

To create an annotation profile

  1. In the Annotation Processors page, click add.
  2. In the Create new profile dialog box, specify the profile name.

To associate a module with an annotation profile

  1. Select a module in the list of modules under a profile.
  2. Click compareNextFile, or press F6.
  3. From the drop-down list, select the target profile to move the selected module to.
    annotation_profile_move

To configure annotation processing for a profile, follow these steps

  1. In the Annotation Processors page, select the desired annotation profile.
  2. Enable processing annotations by selecting the corresponding check box.
  3. Do the following:
    • Choose location of the annotation processors. You can opt to use annotation processor from the classpath, or specify its location by choosing it from the Select Path dialog box.
    • In the Directory name field, type the name of the directory where the annotation processor output will be stored. If the field is left blank, the files generated by the annotation processor will be stored under the project output directory. When the name is specified, the directory with this name will be created under the content root after performing annotation processing.
    • Specify the fully-qualified names of the processors to be launched. If nothing is specified, then IntelliJ IDEA will launch all the processors detected in the specified location.
    • Specify additional parameters to be passed to the annotation processors.

See Also

Last modified: 4 December 2014
comments powered by Disqus