[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Re: ITD content assist in separate project
- From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
- Date: Tue, 9 Mar 2010 21:44:04 -0800
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=ZDa/dNjWJVNS4Fxg0k7YWd80Fnrom1dFzNzEhLX0Bd9jd7N733yn3qtoCgeDHgYkNo 3eQ3pid2KU44hx3EbWiQ3s6swmwO8L1TajDOITo/+c0XITSYvMhk2wumctLieZLs0FQK npnqM8lNx9hPW5f/xWHxWg9pmLbzLJVAqFW9I=
I just wrote about this problem recently:
You do not need to use class folder dependencies and you do not need
to make your project an AJ project (well, not really). You need to
add the AJ nature (so Eclipse treats your project like an AJ project),
but continue to use the Java Builder (the post above describes how).
There should be a way of specifying that a project should get an AJ
nature from within your pom.xml (I can look it up for you if you
> I have tried adding the AspectJ nature to the consuming project, although this seems counter-intuitive to me. It did make some errors go away on the editor.
> But surely this shouldn't be necessary, since there are no aspects or ITDs in this consuming project.
This is exactly necessary. It should have worked to remove all of
your errors. I am surprised that it did not. The reason why it is
necessary is that ITD awareness (ie- content assist, navigation, etc)
takes extra processing time that we do not want to spend on pure Java
projects since most of them will not be consuming any AspectJ
On Tue, Mar 9, 2010 at 3:48 PM, Sharon Gorman
> Hi Andy,
> Have taken a look at that bug, and just a bit more to clarify.
> 1) I do not really have an issue with making it and AspectJ project. In my
> opinion this is fine as a work around. My issue was that even when I did
> this, the code assist did not work correctly.
> 2) Once I removed and re-added my project dependency via eclipse, rather
> than relying on m2eclipse, the code assist started working. I note that the
> m2Eclipse adds the dependency under "Maven Dependencies" on the Package
> explorer whereas once I re-added it it appears under the "Web App
> Does that make sense?
If you are saying in #2, that you are adding a binary dependency
between the two projects? If so, then this makes sense. If not, then
there is no reason why you should have ITD awareness in a purely Java
I am considering adding a new command that just adds the AJ nature,
but does not change the compiler. I'm beginning to think this will be
something that is useful.