title: maven aspectJ plugin compile error
body: <p>I am using maven-aspectJ plugin in a maven project. I want to weave the cucumber-java library.  When I run maven, I constantly get</p>
  
  <pre class="lang-none prettyprint-override"><code>[ERROR] Failed to execute goal
  org.codehaus.mojo:aspectj-maven-plugin:1.5:compile (default)
  on project junitsampler:
      The artifact info.cukes:cucumber-java referenced in aspectj plugin as
      dependencies and/or directories to weave, is not found the project
      dependencies -&gt; [Help 1]
  </code></pre>
  
  <p>My plugin is configured as follows:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;aspectj-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.5&lt;/version&gt;
      &lt;!-- &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.sun&lt;/groupId&gt; &lt;artifactId&gt;tools&lt;/artifactId&gt; 
          &lt;version&gt;1.7&lt;/version&gt; &lt;scope&gt;system&lt;/scope&gt; &lt;systemPath&gt;${tools-jar}&lt;/systemPath&gt; 
          &lt;/dependency&gt; &lt;/dependencies&gt; --&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;compile&lt;/goal&gt;       &lt;!-- use this goal to weave all your main classes --&gt;
                  &lt;goal&gt;test-compile&lt;/goal&gt;  &lt;!-- use this goal to weave all your test classes --&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;source&gt;1.7&lt;/source&gt;
          &lt;complianceLevel&gt;1.7&lt;/complianceLevel&gt;
          &lt;verbose&gt;true&lt;/verbose&gt;
          &lt;showWeaveInfo&gt;true&lt;/showWeaveInfo&gt;
          &lt;target&gt;1.7&lt;/target&gt;
          &lt;forceAjcCompile&gt;true&lt;/forceAjcCompile&gt;
          &lt;weaveDirectories&gt;
              &lt;weaveDirectory&gt;C:/Users/shenv/workspace/junitsampler/target/classes/cucumber&lt;/weaveDirectory&gt;
          &lt;/weaveDirectories&gt;
  
          &lt;!-- &lt;weaveDependencies&gt; &lt;weaveDependency&gt; &lt;groupId&gt;com.autodesk.dm.wipdata.jmeter&lt;/groupId&gt; 
              &lt;artifactId&gt;junitsampler&lt;/artifactId&gt; &lt;/weaveDependency&gt; &lt;weaveDependency&gt; 
              &lt;groupId&gt;info.cukes&lt;/groupId&gt; &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt; &lt;/weaveDependency&gt; --&gt;
          &lt;weaveDependencies&gt;
              &lt;weaveDependency&gt;
                  &lt;groupId&gt;info.cukes&lt;/groupId&gt;
                  &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
              &lt;/weaveDependency&gt;
          &lt;/weaveDependencies&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I checked the pom.xml and the dependency is there. What am I missing here?</p>