hi carlos .. 

ok ... 
now i see the problem ... 
but ... 
does it make sense to simply weave them and store them
in the classes directory of the subproject calling the
aspect ?? 

this means that i have to rebuild the components ( ejb
and common classes prepared for aop ) based on the
weaved classes in the target/classes directory of my
ear directory ... 

if i exclude them from the ear.bundle ... they will
not be included into the ear and are therfore without
use for me ... 

i cannot deploy them manually as they are not stored
in their right subproject ... 

wouldnt it be better to have the opportunity to weave
files in each subproject ?????
i mean that for example the project.xml in my foo-ejb
subproject contains the aspectj tag as well as the
aspectjSourceDirectory tag ... 
having those two tags maven  creates a weaved jar
foo-ejb.jar automatically

????? 

greetings from berlin 





--- Carlos Sanchez <[EMAIL PROTECTED]> wrote:

> Hi Thorsten,
> 
> When weaving into a jar the results are put in
> target/classes dir
> uncompressed, no jar is created.
> I suppose you include the jars with something like
> <ear.bundle>true</ear.bundle>. You can't do this as
> it means including the
> non weaved jars.
> 
> Regards
> 
> Carlos Sanchez
> A Coru�a, Spain
> http://www.jroller.com/page/carlossg/Weblog
> 
> Oness Project
> http://oness.sourceforge.net
> 
> 
> > -----Original Message-----
> > From: thorsten maus [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, September 15, 2004 4:53 PM
> > To: [EMAIL PROTECTED]
> > Subject: aspectj weaving the files 
> > 
> > hi there .. had problems with aspectj before ... 
> > and still have them .. 
> > 
> > although maven is telling me that aspectj is
> weaving files .. 
> > it does not do so .. 
> > 
> > this is my output:
> > 
> > 
> > Starting the reactor...
> > Our processing order:
> > the barmagnat-ear file
> > +----------------------------------------
> > | Building the barmagnat-ear file
> > | Memory: 2M/3M
> > +----------------------------------------
> > Weaving with: common-jar
> > Weaving into: bd-ejb
> > Weaving into: game-ejb
> > Weaving into: controller-jar
> > warning couldn't find aspectjrt.jar on classpath,
> > checked: 
> >     
> > build:start:
> > 
> > all:
> > build:start:
> > 
> > ear:init:
> > 
> > ear:ear:
> > aspectj:init:
> > 
> > aspectj:compile:
> > 
> > aspectj:test-compile:
> > 
> > aspectj:
> > 
> > ear:generate-ear-descriptor:
> >     [echo] Generating appxml
> >
>
file:"/usr/local/share/projects/bm-002/barmagnat-ear/src/appli
> cation/META-INF/application.xml
> > version 1.3"
> > 
> >     [echo] Building EAR barmagnat-ear-0.1 with
> appxml 
> >
>
"/usr/local/share/projects/bm-002/barmagnat-ear/src/applicatio
> n/META-INF/application.xml"
> >     [echo] Bundling: sar - barmagnat:jmx-sar
> >     [echo] Bundling: ejb - barmagnat:bd-ejb
> >     [echo] Bundling: ejb - barmagnat:game-ejb
> >     [echo] Bundling: war - barmagnat:web-war
> >     [ear] Building ear:
> >
>
/usr/local/share/projects/bm-002/barmagnat-ear/target/barmagna
> t-ear-0.1.ear
> > Copying: from
> >
>
'/usr/local/share/projects/bm-002/barmagnat-ear/target/barmagn
> at-ear-0.1.ear'
> > to:
> >
>
'/home/maus/.maven/repository/barmagnat/ears/barmagnat-ear-0.1.ear'
> > Copying: from
> >
>
'/usr/local/share/projects/bm-002/barmagnat-ear/project.xml'
> > to:
> >
>
'/home/maus/.maven/repository/barmagnat/poms/barmagnat-ear-0.1.pom'
> > BUILD SUCCESSFUL
> > Total time: 6 seconds
> > Finished at: Wed Sep 15 16:50:29 CEST 2004
> > 
> > so actually he is doing the weaving before he
> builds the files ... 
> > 
> > but where does he weave the jars together and
> where does he 
> > store the resulting jars ??
> > 
> > he is taking the jar files from their specific
> repositories 
> > without touching them ... 
> > 
> > thanks
> > 
> > 
> > 
> > 
> >             
> > _______________________________
> > Do you Yahoo!?
> > Declare Yourself - Register online to vote today!
> > http://vote.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > 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]
> 
> 



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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

Reply via email to