Excluding files from annotation scanning
Using the annotation exclusion tool, you can indicate files that you want to exclude from annotation scanning.
Procedure
- To use the annotation exclusion tool:
- In an EAR project: In the Enterprise Explorer view, right-click your EAR file, and select Java™ EE Tools > Open Manifest.
- In an EJB or web project: In the Enterprise Explorer view, right-click your MANIFEST.MF file (in the META-INF folder under the ejbModule folder in EJB projects and under the WebContent folder of web projects), and select Open With > Manifest Editor.
- In the Design view of the Manifest editor, in the Annotation
Scanning Filter section, type the jars and packages that
you want to exclude from annotation scanning:
- Press CTRL+S to save. When you open the Source view of
the Manifest editor, your excluded files appear:

