Q:

@ResolutionScope example

I am attempting to use the @ResolutionScope maven annotation (documented here).  Unfortunately I cannot figure out how to put it at the top of my class.
@Mojo(name="json-schema-generator-main")
@ResolutionScope ????
public class JsonSchemaGenerator extends AbstractMojo

What do I need to put in the ???? area?

A:

I would suggest you check where the ResolutionScope is used to be which is mentioned the docs it should be put here:
@Mojo( name = "<goal-name>",
       requiresDependencyResolution = ResolutionScope.<scope>,
) 

Instead as it's own annotation.

