title: Aspect weaving at compile-time doesn't work
body: <p>I use Eclipse Kepler, Java 1.7.
  Part of my pom.xml is below.
  As I see during maven compile, no logs about weaving at all. Neither I have any errors.
  Aspect doesn't work neither.
  What am I doing wrong?
  As I see in some examples, this pom should work.
  I installed AspectJ tools to Eclipse.</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.7&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;showWeaveInfo&gt;true&lt;/showWeaveInfo&gt;
                  &lt;source&gt;${compiler.version}&lt;/source&gt;
                  &lt;target&gt;${compiler.version}&lt;/target&gt;
                  &lt;Xlint&gt;ignore&lt;/Xlint&gt;
                  &lt;complianceLevel&gt;${compiler.version}&lt;/complianceLevel&gt;
                  &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                  &lt;verbose&gt;true&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;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                      &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
                      &lt;version&gt;${aspectj.version}&lt;/version&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                      &lt;artifactId&gt;aspectjtools&lt;/artifactId&gt;
                      &lt;version&gt;${aspectj.version}&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>Edited:
  This is my aspect code:</p>
  
  <pre><code>package util;
  
  import java.util.logging.Logger;
  
  import org.aspectj.lang.ProceedingJoinPoint;
  import org.aspectj.lang.annotation.Around;
  import org.aspectj.lang.annotation.Aspect;
  import org.springframework.util.StopWatch;
  
  @Aspect
  public class MyAspect {
      private static final Logger logger = Logger.getLogger(MyAspect.class.getName());
  
      @Around("execution(public * filter.RolesFilter.doFilter(..))")
      public Object loggingMethod(ProceedingJoinPoint joinPoint) throws Throwable {
          StopWatch stopWatch = new StopWatch();
          stopWatch.start();
  
          Object retVal = joinPoint.proceed();
  
          stopWatch.stop();
  
          StringBuffer logMessage = new StringBuffer();
          logMessage.append(joinPoint.getTarget().getClass().getName());
          logMessage.append(".");
          logMessage.append(joinPoint.getSignature().getName());
          logMessage.append("(");
          // append args
          Object[] args = joinPoint.getArgs();
          for (int i = 0; i &lt; args.length; i++) {
              logMessage.append(args[i]).append(",");
          }
          if (args.length &gt; 0) {
              logMessage.deleteCharAt(logMessage.length() - 1);
          }
          logMessage.append(")");
          logMessage.append(" execution time: ");
          logMessage.append(stopWatch.getTotalTimeMillis());
          logMessage.append(" ms");
          System.out.println(logMessage.toString());
          logger.info(logMessage.toString());
          return retVal;
      }
  
  }
  </code></pre>
  
  <p>The method I want to weave with my aspect:</p>
  
  <pre><code>package filter;
  
  import java.io.IOException;
  import java.util.logging.Logger;
  import javax.servlet.Filter;
  import javax.servlet.FilterChain;
  import javax.servlet.FilterConfig;
  import javax.servlet.ServletException;
  import javax.servlet.ServletRequest;
  import javax.servlet.ServletResponse;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import javax.servlet.http.HttpSession;
  
  public class RolesFilter implements Filter {
      Logger logger = Logger.getLogger(RolesFilter.class.getName());
  
      public RolesFilter() {
      }
  
      public void doFilter(ServletRequest request, ServletResponse response,
              FilterChain chain) throws IOException {
          logger.info("This is logger message");
          HttpServletRequest req = (HttpServletRequest) request;
          HttpServletResponse res = (HttpServletResponse) response;
          HttpSession session = req.getSession();
          String reqURI = req.getRequestURI();
          String userName = (String) session.getAttribute("username");
          Character role = (Character) session.getAttribute("role");
          try {
              if (role != null &amp;&amp; role.charValue() == 'A') {
                  if (reqURI.indexOf("/admin/") &gt;= 0) {
                      chain.doFilter(request, response);
                  } else {
                      res.sendRedirect(req.getContextPath()
                              + "/view/roles/admin/home.xhtml");
                  }
              } else if (role != null &amp;&amp; role.charValue() == 'B') {
                  if (reqURI.indexOf("/biller/") &gt;= 0) {
                      chain.doFilter(request, response);
                  } else {
                      res.sendRedirect(req.getContextPath()
                              + "/biller.xhtml");
                  }
              } else if (role != null &amp;&amp; role.charValue() == 'C') {
                  if (reqURI.indexOf("/customer/") &gt;= 0) {
                      chain.doFilter(request, response);
                  } else {
                      res.sendRedirect(req.getContextPath()
                              + "/customer.xhtml");
                  }
              } else {
                  res.sendRedirect(req.getContextPath()
                          + "/login.xhtml");
              }
          } catch (ServletException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Also, here is <code>maven clean compile</code> output:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [WARNING] 
  [WARNING] Some problems were encountered while building the effective model for myproject:war:0.0.1-SNAPSHOT
  [WARNING] The expression ${build.sourceDirectory} is deprecated. Please use ${project.build.sourceDirectory} instead.
  [WARNING] 
  [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  [WARNING] 
  [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  [WARNING] 
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building myproject Maven Webapp 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myproject ---
  [INFO] Deleting /Users/user1/git/myproject/target
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myproject ---
  [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 1 resource
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ myproject ---
  [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
  [INFO] Compiling 41 source files to /Users/user1/git/myproject/target/classes
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2.007 s
  [INFO] Finished at: 2015-02-16T10:00:23-08:00
  [INFO] Final Memory: 12M/245M
  [INFO] ------------------------------------------------------------------------
  </code></pre>