Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Strange project dependency problem...
Strange project dependency problem... [message #51465] Fri, 13 May 2005 02:34 Go to next message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
I have two projects, A and B.

A is an aspectj project. It contains a single jar in its InPath. It contains a single source directory. Within that directory, one package contains aspects, another contains normal java classes. All output -- both from the source directories and the weaved jar -- are placed into the bin directory.

B is a java project. It depends on A. Until now only referenced classes that came from A's InPath jar. Afer adding a dependency to one of the normal java classes, the dependency cannot be resolved. (ie, the import statement is in error).

If I remove the aspectj nature from A, then the normal java clases in A can be resolved in B, but the classes that were extracted from the InPath jar are not longer in the bin directory, and hence not resolved. If I add back the aspectj nature to A, then I'm back where I started: B can see the InPath classes, but not the normal java classes defined by A.

Has anybody setup a project like this before? Seems like this would be very common.
Re: Strange project dependency problem... [message #51493 is a reply to message #51465] Fri, 13 May 2005 02:44 Go to previous message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
Something is flakey. I kept twiddling with the project settings. Remove dependency from B to A. Include only the A.InPath jar in A (but not the project). etc, etc. I restarted eclipse a dozen times. And, of course, eventually it worked. I have no clue why. I have seen some issue between these projects before and an eclipse restarted seemed to clear things up. But this time it was not so straight forward.

Anyway, in the end. The projects are setup as:

B depends project A
B includes A.bin (as a class folder)

I don't know why the dependency on the class folder is required.
Re: Strange project dependency problem... [message #588055 is a reply to message #51465] Fri, 13 May 2005 02:44 Go to previous message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
Something is flakey. I kept twiddling with the project settings. Remove dependency from B to A. Include only the A.InPath jar in A (but not the project). etc, etc. I restarted eclipse a dozen times. And, of course, eventually it worked. I have no clue why. I have seen some issue between these projects before and an eclipse restarted seemed to clear things up. But this time it was not so straight forward.

Anyway, in the end. The projects are setup as:

B depends project A
B includes A.bin (as a class folder)

I don't know why the dependency on the class folder is required.
Previous Topic:Strange project dependency problem...
Next Topic:Eclipse Hangs After Installing AJDT
Goto Forum:
  


Current Time: Sat Nov 09 23:11:39 GMT 2024

Powered by FUDForum. Page generated in 0.03843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top