title: How to enable aspectj compile time weaving with Java 7 and maven
body: <p>I have a project which currently works with java 6 and compile time weaving.
  We use the following pom to enable spring aspects and our own ones:</p>
  
  <pre><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.4&lt;/version&gt;
        &lt;configuration&gt;
          &lt;showWeaveInfo&gt;true&lt;/showWeaveInfo&gt;
          &lt;source&gt;1.6&lt;/source&gt;
          &lt;target&gt;1.6&lt;/target&gt;
          &lt;Xlint&gt;ignore&lt;/Xlint&gt;
          &lt;complianceLevel&gt;1.6&lt;/complianceLevel&gt;
          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
          &lt;verbose&gt;false&lt;/verbose&gt;
          &lt;aspectLibraries&gt;
            &lt;aspectLibrary&gt;
               &lt;groupId&gt;org.springframework&lt;/groupId&gt;
               &lt;artifactId&gt;spring-aspects&lt;/artifactId&gt;
            &lt;/aspectLibrary&gt;
          &lt;/aspectLibraries&gt;
        &lt;/configuration&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;goals&gt;
              &lt;goal&gt;compile&lt;/goal&gt;
              &lt;goal&gt;test-compile&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>I've tried various configuration but can't make it work with java 7.
  If someone could share a working pom or leads it would be great.</p>