title: Skip module with Maven enforcer
body: <p>I'm using <code>enforcer</code> plugin in a multi-node project in the root pom, but I have one testing module, that I don't really care to run the plugin there since it won't create any jar and is only for testing purposes. Is there any way to skip one of the modules in the plugin config?.</p>
  <p>Checking the documentation I cannot find anything. Only how to ban some specific dependencies. <a href="https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html" rel="nofollow noreferrer">https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html</a></p>
  <p>The solution to put the plugin in each sub-module is possible but it's dangerous, since if I create a new sub-module I might forget to add it there.</p>
  <p>Here my plugin config.</p>
  <pre><code>      &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-enforcer-plugin&lt;/artifactId&gt;
            &lt;version&gt;3.0.0-M3&lt;/version&gt;
            &lt;executions&gt;
              &lt;execution&gt;
                &lt;id&gt;enforce-maven-version-and-dependencies&lt;/id&gt;
                &lt;goals&gt;
                  &lt;goal&gt;enforce&lt;/goal&gt;
                &lt;/goals&gt;
                &lt;configuration&gt;
                  &lt;rules&gt;
                    &lt;requireMavenVersion&gt;
                      &lt;version&gt;3.3.9&lt;/version&gt;
                    &lt;/requireMavenVersion&gt;
                    &lt;bannedDependencies&gt;
                      &lt;searchTransitive&gt;true&lt;/searchTransitive&gt;
                    &lt;/bannedDependencies&gt;
                    &lt;dependencyConvergence&gt;&lt;/dependencyConvergence&gt;
                  &lt;/rules&gt;
                &lt;/configuration&gt;
              &lt;/execution&gt;
            &lt;/executions&gt;
            &lt;configuration&gt;
              &lt;fail&gt;true&lt;/fail&gt;
            &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>