Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to show markers if aspects and woven classes are in different projects?

You will not see any markers in AJDT when you are using LTW.  Since
weaving is done at load-time only, the IDE is not aware of it.

However, even if you change to compile time weaving, then not all
markers will show up.  A project that has an aspect coming in from the
aspect path will show markers where that aspect applies.  But, the
aspect itself will not show any markers.

Are you saying that you still see no markers when you change to CTW
and your aspect is in a different project?  If that is the case, then
it may be that your aspect path is not properly set up in the
consuming project.

On Tue, Oct 26, 2010 at 1:10 AM, Benyi Wang <bewang.tech@xxxxxxxxx> wrote:
> Hi,
>
> I still cannot find a way to show advice markers if the aspects and woven
> classes in different projects.
>
> for example,
>
> aspectj-mp-aspect defines the aspect using AspectJ annotation.
> aspectj-mp defines the woven classes.
>
> If I put them in one project, it works fine.
>
> I'm using load-time weaving, maven2, m2eclipse, and AJDT.
>
> The load-time weaving works fine, so aop.xml should work correctly. I just
> want to show advice markers, but currently I got "advice defined in
> LogAspect has not been applied"
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top