The Processor interface says this about the discovery process:
The tool uses a discovery process to find annotation processors and
decide whether or not they should be run. By configuring the tool, the
set of potential processors can be controlled. For example, for a
JavaCompiler the list of candidate processors to run can be set
directly or controlled by a search path used for a
service-style lookup. Other tool implementations may have
different configuration mechanisms, such as command line options; for
details, refer to the particular tool's documentation.
Your best bet for defining the processor in your classpath is to provide a META-INF/services/javax.annotation.processing.Processor file containing the text defaultproject.annotations.DefaultProcessor.
(Assuming your tool chain supports this mechanism. This is ultimately compiler/tool/IDE dependent.)