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 sebastia...@gmail.com on 7 Jul 2014 at 7:51

@GoogleCodeExporter
Copy link
Author

Original comment by uwe.h.schindler on 7 Jul 2014 at 8:37

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Hi,

thanks for the suggestion, I just committed this in revision: 267

Uwe

Original comment by uwe.h.schindler on 7 Jul 2014 at 9:13

  • Changed state: Committed

@GoogleCodeExporter
Copy link
Author

Thanks!

Original comment by sebastia...@gmail.com on 7 Jul 2014 at 9:24

@GoogleCodeExporter
Copy link
Author

Released with forbiddenapis v1.6.

Original comment by uwe.h.schindler on 4 Aug 2014 at 9:42

  • Changed state: Fixed

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