Skip to content

[Feature] Add the skip parameter to the Maven plugin #581

@giulong

Description

@giulong

The Maven plugin should support the skip configuration parameter, as many others do (e.g. clean, help), like:

<configuration>
    <skip>true</skip>
</configuration>

This is useful when you want to skip the execution in specific builds, without requiring dedicated Maven profiles. The corresponding user property defined in the Mojo should have a scope like in jsonschema.skip to avoid clashes with other plugins, and should take precedence over the static plugin configuration above.

For instance, I'd like to generate schemas only when building a new release version of an artifact, not in regular CI jobs. With the above
configuration I'd be able to skip the generation and have faster CI jobs, while activating it in release jobs overriding it with -Djsonschema.skip=false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions