Hi,
Have you checked http://maven.apache.org/reference/plugins/aspectj/ ?
If so, I need some debug info:
Does it work when not in multiproject?
What goal are you calling?
Have you added this to foo-ear?
<dependency>
<groupId>groupid</groupId>
<artifactId>common-jar</artifactId>
<version>jarversion</version>
<properties>
<aspectj.weaveWith>true</aspectj.weaveWith>
</properties>
</dependency>
<dependency>
<groupId>groupid</groupId>
<artifactId>sample-ejb</artifactId>
<version>jarversion</version>
<properties>
<aspectj.weaveInto>true</aspectj.weaveInto>
</properties>
</dependency>
Have you added something like this to maven.xml?
<preGoal name="java:compile">
<attainGoal name="aspectj"/>
</preGoal>
Regards
Carlos Sanchez
A Coru�a, Spain
Oness Project
http://oness.sourceforge.net
> -----Original Message-----
> From: thorsten maus [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 12:50 PM
> To: Maven Users List
> Subject: Re: aspectj multiproject
>
> sorry ..
> i forgot to add the aspect source ..
>
> public aspect LoggerAspect {
>
>
> pointcut traceMethods() : execution(* *.*(..));
>
>
> before() : traceMethods() {
>
> Signature sig =
> thisJoinPointStaticPart.getSignature();
>
> System.out.println(sig.getName()+" reached");
> }
>
> this aspect should touch any possible method during the
> compilation process
>
>
> --- thorsten maus <[EMAIL PROTECTED]> wrote:
>
> > hi there ..
> > running into a problem i cannot see any way out ..
> >
> > short description:
> >
> > setup a multiproject with the following directories
> >
> > common-jar
> > sample-ejb
> > foo-ear
> >
> > the common-jar contains the aspectj (.aj) files in a separated
> > directory as well
> >
> > the foo-ear has dependencies to common-jar and sample-ejb. the
> > common-jar dependency contains "weaveWith" whereas the sample-ejb
> > contains "weaveInto".
> >
> >
> > the building process looks quite ok .. but i cannot see any
> sign that
> > aspectj is weaving files ...
> >
> > the following snipplet reveals, that aspectj is properly working:
> >
> > warning couldn't find aspectjrt.jar on classpath,
> > checked:
> > java:prepare-filesystem:
> > java:compile:
> > aspectj:init:
> > aspectj:compile:
> > [echo] Compiling to
> > _path_to_project/common-jar/target/classes
> >
> >
> > any help would be appreciated
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - 100MB free storage!
> > http://promotions.yahoo.com/new_mail
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>
> _______________________________
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.
> http://promotions.yahoo.com/goldrush
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]