Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to skip the execution of the plugin #29

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments
Closed

Option to skip the execution of the plugin #29

GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Please provide a skip option similar to:

http://mojo.codehaus.org/findbugs-maven-plugin/check-mojo.html#skip
http://mojo.codehaus.org/animal-sniffer-maven-plugin/check-mojo.html#skip
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#ski
p
http://maven.apache.org/plugins/maven-pmd-plugin/check-mojo.html#skip

@Parameter(property="forbiddenapis.skip", defaultValue="false")
private boolean skip;

That way one can enable the plugin by default and selectively not execute it 
via:

mvn clean install -Dforbiddenapis.skip=true

or a profile:

<profile>
    <id>fast_build</id>
    <properties>
        <forbiddenapis.skip>true</forbiddenapis.skip>
    </properties>
</profile>

mvn clean install -P fast_build

Original issue reported on code.google.com by [email protected] on 7 Jul 2014 at 7:51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant