title: How to use of the Maven Enforcer plugin?
body: <p>I'd like to use the Maven Enforcer plugin to check to see if I have duplicate classes on my path.</p>
  <p>I've tried the example from <a href="http://mojo.codehaus.org/extra-enforcer-rules/banDuplicateClasses.html" rel="nofollow noreferrer">here</a>.</p>
  <p>But when I run it like this:</p>
  <p><code>mvn enforcer:enforce</code></p>
  <p>I get this error:</p>
  <blockquote>
  <p>Failed to execute goal
  org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:enforce
  (default-cli) on project datapopulator: The parameters 'rules' for
  goal org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:enforce are
  missing or invalid</p>
  </blockquote>
  <p>Is there a way to use this correctly?</p>
  <p><strong>EDIT #1</strong></p>
  <p>If changing my config to this:</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;1.0.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;enforce-versions&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;enforce&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;rules&gt;
                              &lt;AlwaysPass /&gt;
                          &lt;/rules&gt;
                          &lt;fail&gt;true&lt;/fail&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  <p>Produces the same error.</p>