IntelliJ IDEA 13.1 Web Help

File | Settings | Compiler | Annotation Processors

Use this page to configure annotation processing for your sources.

Annotation processing profiles

Item Keyboard Shortcut Description
add Keyboard Shortcut Click this button to create a new profile.
delete Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand Delete or Command BackspaceCommand DeleteCommand Delete or Command Backspace Click this button to delete the selected profile from the list of existing profiles. All modules, associated with this profile, will be automatically moved to the default profile.
compareNextFile F6F6F6F6F6F6F6Ctrl+MShift+Alt+VF6F6Alt Command V Click this button to associate a module with a profile. This button only becomes available, when a module in the list of modules under a certain profile gets the focus.

Annotation processors settings

Item Description
Enable annotation processing If you want annotation processors to be run during compilation, select this check box and specify associated options:
  • Obtain processors from project classpath: Select this option, if you want IntelliJ IDEA to obtain the annotation processors from the project classpath. This is useful, for example, if you use a custom annotation processor as part of your project, or if the processor is stored in a .jar file attached to all the corresponding modules as a library.
  • Processor path: Select this option and specify in the field to the right the path to the annotation processor, if it is not desirable to include the processor into the project or project libraries.
  • Directory name: By default, the sources generated by annotation processors are stored in the project output directory. Using this field, you can override this behaviour for a profile.

    Specify the name of the directory in which you want IntelliJ IDEA to store the generated sources. The corresponding directories will be created within the content roots of the corresponding modules.

    Note

    At a later time, if you want to use the generated classes as your own sources, you can mark the corresponding directories as source roots.

    Warning

    On rebuild, the directories in which the generated sources are stored will be cleaned up as ordinary output directories. So it is not recommended to store non-generated sources in such directories. Otherwise, the corresponding sources will be lost on rebuild.

Processor FQ Name Specify the processor fully qualified name.

Use add (Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter) or delete (Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand Delete or Command BackspaceCommand DeleteCommand Delete or Command Backspace) to make up the list of annotation processors to be run.

Annotation processor options If necessary, specify the processor run options either as -key=value, or key=value.

Use spaces to separate individual options.

Use add (Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter) or delete (Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand Delete or Command BackspaceCommand DeleteCommand Delete or Command Backspace) to make up the list of options to be passed to the annotation processors.

See Also

Procedures:

Web Resources: