Problem cycles dependency plug-in - Eclipse OSGI

  • Thread starter Andrea Checchia
  • Start date
A

Andrea Checchia

Good morning everyone.

I have created in Eclipse a plug-in Fragment-Project, called Project B.
Project B depends on a Required Plug-ins that will call Project A, it is normal plug-in project, which in turn depends on other plug-in, for example "org.adempiere.base" - "org.adempiere.ui" - "org.adempiere.ui.zk" ......

When I compile my Project B, there is a situation of loop cycles stops me compile the project.
How can I fix this problem, please?


Andrew
 
J

Jeff Higgins

Good morning everyone.

I have created in Eclipse a plug-in Fragment-Project, called Project B.
Project B depends on a Required Plug-ins that will call Project A, it is normal plug-in project, which in turn depends on other plug-in, for example "org.adempiere.base" - "org.adempiere.ui" - "org.adempiere.ui.zk" ......

When I compile my Project B, there is a situation of loop cycles stops me compile the project.
How can I fix this problem, please?


Andrew
Wow. org.adempiere.* looks like a big complex project.
Probably best to ask at that community how to sort build process.
There's a link from their Wiki Main page:
<http://wiki.idempiere.org/en/Main_Page>
"If no one is answering you maybe you need to know How To Ask Questions
The Smart Way"
<http://www.catb.org/esr/faqs/smart-questions.html>
 
M

Marcel Müller

Good morning everyone.

I have created in Eclipse a plug-in Fragment-Project, called Project B.
Project B depends on a Required Plug-ins that will call Project A, it is normal plug-in project, which in turn depends on other plug-in, for example "org.adempiere.base" - "org.adempiere.ui" - "org.adempiere.ui.zk" ......

When I compile my Project B, there is a situation of loop cycles stops me compile the project.
How can I fix this problem, please?

AFAIK Java/Eclipse can't handle cyclic dependencies. It might work if
the dependencies are build step by step but a clean build will not run.

In such situations I always split the projects in a way that the
dependencies build a directed graph. I.e. extract the part of A where B
depends on into a separate jar file and the part of B where A depends on
also. In some cases a fifth project may be needed where both extracted
projects depend on. It might also be required to apply PIMPL to remove
dependencies.

If nothing helps you might create a mock project with the public API but
without any content and, of course, no dependencies. This project is
only used to compile the dependent project. It is never used at run
time. I have seen something like that at SAP PI.

hth

Marcel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top