maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <>
Subject aspectj
Date Mon, 01 Aug 2005 22:41:58 GMT
Hm... I am currently trying to get aspectj
properly working with maven. Maybe someone here
has an idea what's going on.

I've created a very simple project. A simple
"maven jar" works just fine. Then I've added
the dependency to the aspectj runtime


and pointed maven to the aspects


In the maven.xml I've attached the aspectj
goal to the java:compile goal

     <preGoal name="java:compile">
       <attainGoal name="aspectj:compile"/>

When I call "maven clean jar" I get

  warning couldn't find aspectjrt.jar on classpath, checked:
  compiling [snip]/aop/
  compiling [snip]/aop/logging/LogAspect.aj
     [iajc] Copied 1 empty directory to [snip]/target/classes

Strangely enough the generated jar seems to
include the aspects and does work :-/

...but what's wrong with the build?


View raw message