title: java.lang.NoSuchMethodError: DefaultPlexusContainer
body: <p>I wanted to use <code>maven-plugin-testing-harness</code> and I am including the following dependency into my project:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.apache.maven.plugin-testing&lt;/groupId&gt;
          &lt;artifactId&gt;maven-plugin-testing-harness&lt;/artifactId&gt;
          &lt;version&gt;3.3.0&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>Running YourMojoTest
  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.055 sec &lt;&lt;&lt; FAILURE!
  testMojoGoal(YourMojoTest)  Time elapsed: 0.017 sec  &lt;&lt;&lt; ERROR!
  java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.&lt;init&gt;(Lorg/codehaus/plexus/ContainerConfiguration;[Lcom/google/inject/Module;)V
      at org.apache.maven.plugin.testing.AbstractMojoTestCase.setupContainer(AbstractMojoTestCase.java:264)
      at org.apache.maven.plugin.testing.AbstractMojoTestCase.getContainer(AbstractMojoTestCase.java:298)
      at org.apache.maven.plugin.testing.AbstractMojoTestCase.setUp(AbstractMojoTestCase.java:152)
      at YourMojoTest.setUp(YourMojoTest.java:13)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
  </code></pre>
  
  <p><strong>How do we fix this?</strong></p>