title: Not executing aspectJ compiler as the project is not a Java classpath-capable package
body: <p>My aspectj classes are not getting compiled despite that they are annotated with @Aspect and are residing in .aj extension files. </p>
  
  <p>This project is a Maven JBoss AS 7 EAR Archetype.</p>
  
  <pre class="lang-none prettyprint-override"><code>[INFO] --- aspectj-maven-plugin:1.4:compile (default-cli) @ hms ---
  [WARNING] Not executing aspectJ compiler as the project is not a Java classpath-capable package
  [INFO] --- aspectj-maven-plugin:1.4:compile (default-cli) @ hms-ejb ---
  [WARNING] bad version number found in C:\Users\Oh Chin Boon\.m2\repository\org\aspectj\aspectjrt\1.5.4\aspectjrt-1.5.4.jar expected 1.6.11 found 1.5.4
  [WARNING] advice defined in sg.java.hms.aspect.AbstractLoggingAspect has not been applied [Xlint:adviceDidNotMatch]
  [WARNING] advice defined in sg.java.hms.aspect.DefaultLoggingAspect has not been applied [Xlint:adviceDidNotMatch]
  [WARNING] advice defined in sg.java.hms.aspect.AbstractLoggingAspect has not been applied [Xlint:adviceDidNotMatch]
  </code></pre>
  
  <p>EDIT: pom.xml snippet</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.4&lt;/version&gt;
      &lt;configuration&gt;
          &lt;source&gt;1.6&lt;/source&gt;
          &lt;target&gt;1.6&lt;/target&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;!-- use this goal to weave all your main classes --&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>