the main problem is that i have to put the activeJ
tags inside my foo-ear project.xml file. 
it looks like the plugin does not validate them other
than in the main project file. 

i created a new project without the multiproject
settings .. and dropped a dependency to my former
common-jar with the aspectj tag .. 

the compiler echoed:
Weaving with: common-jar
Weaving into: game-ejb

(these messages never appeared when putting the
aspectj lines into the ear-project.xml file )

on the other hand .. i cannot drop the dependencies
into the main project file because they belong into
the ear directory and maven discovers a cycle once i
drop them into the main project.xml file .. 

any ideas ???


--- thorsten maus <[EMAIL PROTECTED]> wrote:

> hi carlos .. nice to hear from you again .. 
> 
> 
> 
> --- Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > Have you checked
> > http://maven.apache.org/reference/plugins/aspectj/
> ?
> yes .. i did so ... for now over three days .. 
> 
> 
> > If so, I need some debug info:
> the debug flag for aspectj is not working for me ...
> 
> the verbose flag is working .. 
> 
> > 
> > Does it work when not in multiproject?
> dont know ... have to try it ... 
> will try this at once .. 
> 
> 
> > 
> > What goal are you calling?
> the main ( root directory ) maven.xml contains
> <preGoal name="java:compile">
>         <attainGoal name="aspectj:compile"/>
>     </preGoal>
> 
> > 
> > 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>
> 
> yep .. that is exactly what i did ... 
> 
> > 
> > Have you added something like this to maven.xml?
> >            <preGoal name="java:compile">
> >              <attainGoal name="aspectj"/>
> >            </preGoal>
> 
> yep .. the first ten tries i simply took "aspectj"
> ..
> later on "aspectj:compile"
> 
> would it help you to look through the project /
> maven
> / property files ???
> 
> 
> 
> > 
> > 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]
> > > 
> > > 
> > > 
> > 
> 
=== message truncated ===



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to