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?
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.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments