mojohaus / maven-native

https://www.mojohaus.org/maven-native/
MIT License
18 stars 12 forks source link

Add feature skip execution of native-maven-plugin mojos #15

Open buzz3791 opened 6 years ago

buzz3791 commented 6 years ago

Please add the ability to skip execution of the native-maven-plugin mojos.

Many maven plugins support skipping execution. Examples: maven-nar: http://maven-nar.github.io/nar-compile-mojo.html#skip maven-surefire-plugin: http://maven.apache.org/plugins-archives/maven-surefire-plugin-2.12.4/examples/skipping-test.html maven-compiler-plugin: https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#skipMain xml-maven-plugin: https://github.com/mojohaus/xml-maven-plugin/issues/2

Use case: Multi-module maven project with hundreds of Java and dozens of C/C++ child modules. Our project takes 20 minutes to build; almost 10 minutes are from the C/C++ modules. Most developers are only making changes to the hundreds of Java projects and would get back a significant amount of time if the C/C++ modules could be optionally skipped.

ctubbsii commented 6 years ago

I suggest naming the user property native.skip and the configuration property (for the POM) skip.