title: Project not compiling properly with AspectJ Maven
body: <p>I am trying to work with <strong>AspectJ</strong> in <strong>IntelliJ Community Edition</strong>.</p>
  <p>It's not working as expected. Where do am I making a mistake? Any help/insights would be very much appreciated.</p>
  <p><strong>Technology Ref:</strong></p>
  <ol>
  <li>IntelliJ IDEA 2018.2.4 (Community Edition)</li>
  <li>java version &quot;1.8.0_77&quot;</li>
  </ol>
  <pre class="lang-java prettyprint-override"><code>package org.kayd;
      
  public class Client {
    public static void main(String[] args) {
      Client data = new Client();
      data.data();
    }
  
    public void data() {
      System.out.println(&quot;kayd&quot;);
    }
  }
  </code></pre>
  <p><em>Aspect Class</em></p>
  <pre class="lang-java prettyprint-override"><code>package org.kayd;
  
  import org.aspectj.lang.JoinPoint;
  import org.aspectj.lang.annotation.After;
  import org.aspectj.lang.annotation.Aspect;
  import org.aspectj.lang.annotation.Before;
  import org.aspectj.lang.annotation.Pointcut;
  
  @Aspect
  public class AspectTest {
    @Pointcut(&quot;execution(* *(..))&quot;)
    public void defineEntryPoint() {}
  
    @Before(&quot;defineEntryPoint()&quot;)
    public void log(JoinPoint joinPoint) {
      System.out.println(&quot;log&quot;);
    }
  
    @After(&quot;execution(org.kayd.Client.data())&quot;)
    public void after() {
      System.out.println(&quot;log&quot;);
    }
  }
  </code></pre>
  <p><em>AOP.xml</em></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;aspectj&gt;
    &lt;aspects&gt;
      &lt;aspect name=&quot;org.kayd.AspectTest&quot;/&gt;
    &lt;/aspects&gt;
  &lt;/aspectj&gt;
  </code></pre>
  <p><em>pom.xml</em></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;org.kayd&lt;/groupId&gt;
    &lt;artifactId&gt;AOP&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
        &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
        &lt;version&gt;5.3.2&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
        &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
        &lt;version&gt;1.9.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
        &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;
        &lt;version&gt;1.9.2&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;plugins&gt;
        &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.9&lt;/version&gt;
          &lt;configuration&gt;
            &lt;showWeaveInfo&gt;true&lt;/showWeaveInfo&gt;
            &lt;source&gt;1.8&lt;/source&gt;
            &lt;target&gt;1.8&lt;/target&gt;
            &lt;Xlint&gt;ignore&lt;/Xlint&gt;
            &lt;complianceLevel&gt;${java.version}&lt;/complianceLevel&gt;
            &lt;encoding&gt;UTF-8&lt;/encoding&gt;
            &lt;verbose&gt;true&lt;/verbose&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;phase&gt;process-sources&lt;/phase&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;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <p><strong>Screenshot</strong></p>
  <p><a href="https://i.stack.imgur.com/i91HA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i91HA.png" alt="Project Structure" /></a></p>
  <p><strong>Ref</strong>: I already looked into these questions but still not working.</p>
  <ul>
  <li><a href="https://stackoverflow.com/questions/44491891/aspectj-with-maven-still-not-working">AspectJ with Maven (still) not working</a></li>
  <li><a href="http://www.andrewewhite.net/wordpress/2010/03/17/aspectj-annotation-tutorial/" rel="nofollow noreferrer">The White Blog</a></li>
  </ul>