[aspectwerkz-user] Re: running AW 2.0 with maven 1.2
Jonas Bonér <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Vincent. I do not think that we have time to maintain the plug in I think it would be best if you could add a page to the wiki and add the tar there as an attachment. Do you have rights to do that, and to do you want to do it? /Jonas On 4/15/05, Vincent Massol <[email protected]> wrote: > Hi Alex, > > > -----Original Message----- > > From: Alexandre Vasseur [mailto:[email protected]] > > Sent: vendredi 15 avril 2005 09:32 > > To: [email protected] > > Subject: Re: [aspectwerkz-user] running AW 2.0 with maven 1.2 > > > > Hi Vincent > > > > Assuming we have an Ant task, isn't the post goal approach enough ? > > It sounds like classpath / path issue there. I am not sure we want to > > have the extra effort in maintaining a maven plugin though I ll be > > please to have a look at it (any viewcvs url where the 0.9 plugin is > > is welcome) > > Here's the situation: > > - Even though I have started the AW plugin for Maven, I have not been able > to maintain it and I believe it is probably in an unusable state (software > do rot when not maintained) ;-). I haven't tried it lately so I can't say > it's not working for sure but I would be surprised it does seen it was > written for AW 0.9 and it had only a few goals. > - The consequence is that I believe the plugin should be decommissioned > from > the Maven repository as it's not doing a favor to Maven nor to AW users. > Those who are going to try using it will spend frustrating hours to > discover > it doesn't quite work. > - Thus, my email of this morning which was really a question to you guys as > to whether you wanted to support it by bringing it into the AW project's > fold or not. If not, maybe you could simply mothball it in a contrib/ area > of AW and tell users they use it at their own risk. Till someone comes up > and start contributing patches for it... > > What do you think? > > Thanks > -Vincent > > PS: I'm cc-ing the maven list because I've just noticed John has also sent > the mail there... > > > > > Alex > > > > On 4/15/05, Vincent Massol <[email protected]> wrote: > > > Hi Agustin, > > > > > > I have done the first shot at writing the AW plugin. However it's > > wrongly > > > located in Maven repository as it cannot keep up with the AW progress. > I > > was > > > following AW for 0.9 and then have stopped using it. That's why the > > plugin > > > has not progressed. I believe it would be better hosted in AW's repo > > itself > > > but that would require a champion that could work on it... > > > > > > The Maven community would love it if it could be moved back to AW. > > > > > > Thanks > > > -Vincent > > > > > > > -----Original Message----- > > > > From: Agustin Ramos [mailto:[email protected]] > > > > Sent: vendredi 15 avril 2005 03:57 > > > > To: [email protected] > > > > Subject: [aspectwerkz-user] running AW 2.0 with maven 1.2 > > > > > > > > Hi > > > > > > > > Does anyone know how to use AW2.0 seamesly with maven? > > > > The maven plugin is targeted at AW0.9. So I defined an ant compile > > > > postGoal > > > > within maven.xml using the AspectWerkzCTask. This required me to add > > > > trove, dom4j, asm, asm-attrs, asm-utils, and jrexx as project > > > > dependencies. > > > > > > > > <goal name="aspectwerkz:weave"> > > > > <ant:taskdef name="awc" > > > > > > > > classname="org.codehaus.aspectwerkz.compiler.AspectWerkzCTask"> > > > > <ant:classpath> > > > > <ant:path refid="maven.dependency.classpath"/> > > > > </ant:classpath> > > > > </ant:taskdef> > > > > <awc verbose="true" > > > > definition="${maven.src.dir}/conf/aop.xml"> > > > > <ant:classpath> > > > > <ant:path refid="maven.dependency.classpath"/> > > > > </ant:classpath> > > > > <ant:target path="${maven.build.dir}/classes"/> > > > > </awc> > > > > </goal> > > > > > > > > The problem is when I try to run my junit tests, I get something like > > > > > > > > ****************************************************************** > > > > * ClassLoader = sun.misc.Launcher$ExtClassLoader@f38798@15959960 > > > > * SystemID = virtual_15959960, 1 aspects. > > > > ****************************************************************** > > > > AW::WARNING - could not load class > > > > [./my...package...name/aop/TracingAspect] as a resource in loader > > > > [sun.misc.Launcher$AppClassLoader@12f6684] > > > > Warning: could not load aspect mypackagename.aop.TracingAspect from > > > > sun.misc.Launcher$AppClassLoader@12f6684due to: java.io.IOException: > > > > Class not found > > > > > > > > And so for every aspect class I defined. > > > > Does anyone knows how to fix these or if there's a better way to use > > AW > > > > within maven? > > > > > > > > Thanks. > > > > Agustín. > > > > > > > > > > > > > > -- /Jonas