You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Andreas Gies <an...@wayofquality.de> on 2010/11/08 18:35:38 UTC

Bundle dependency visualization

Hi, 

I am sorry if am posting to the wrong group (again ;).

Is there a nice tool for bundle dependency visualization. I would be happy
to get a dependency graph for the bundles deployed in a running container;
but even better would be dependencies inside a given set of repositories. 

I noticed it took me the longest time in my prototype to handcraft the
features files correctly. If I read an ealrier comment correctly, the
maven-features-plugin is not considered a good choice to generate those. Is
there a reason for that - perhaps it's just broken and needs fixing ?

Thanks in advance
Andreas
-- 
View this message in context: http://karaf.922171.n3.nabble.com/Bundle-dependency-visualization-tp1864059p1864059.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Bundle dependency visualization

Posted by Andreas Gies <an...@wayofquality.de>.
Hi Mike, 

dev:show-tree is kind of what I was hoping for.

Thanks for your efforts 
Andreas
-- 
View this message in context: http://karaf.922171.n3.nabble.com/Bundle-dependency-visualization-tp1864059p1864870.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Bundle dependency visualization

Posted by Mike Van <mv...@comcast.net>.


There are a few karaf-command-line options which should help you: 



Mikes-Awesome-Karaf-Build > exports <bundleId> 

Mikes-Awesome-Karaf-Build > imports <bundleId> 

Mikes-Awesome-Karaf-Build > exports | grep <the package you want to see> 

Mikes-Awesome-Karaf-Build > imports | grep <the package you want to look for> 

Mikes-Awesome-Karaf-Build > dev:show-tree 



I'd like to say that you can also look for imports and exports in the Eclipse debugger, but that would be a lie.  So, the above stuff is what I normally use. 



v/r, 



Mike Van 


----- Original Message ----- 
From: "Andreas Gies [via Karaf]" <ml...@n3.nabble.com> 
To: "Mike Van" <mv...@comcast.net> 
Sent: Monday, November 8, 2010 2:29:49 PM 
Subject: Re: Bundle dependency visualization 

Hi Mike, 

thanks for this. I am aware of the Eclipse tool. However, I was wondering if something similar was there working on OSGi bundles and their manifests rather than working on pom files. 

For example, with the Dependency graph I wouldn't see dependencies that I have sucked into my OSGi container using the wrap: url support. Also, if I have 3rd party bundles that have not been built with maven, I would be blind to them I believe ? 

I was thinking along the lines of a tool that kind of relates the import/export packages of the bundles ? 

Thanks 
Andreas 
  





View message @ http://karaf.922171.n3.nabble.com/Bundle-dependency-visualization-tp1864059p1864727.html 
To start a new topic under Karaf - User, email ml-node+930749-917263437-228489@n3.nabble.com 
To unsubscribe from Karaf - User, click here . 

-- 
View this message in context: http://karaf.922171.n3.nabble.com/Bundle-dependency-visualization-tp1864059p1864795.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Bundle dependency visualization

Posted by Andreas Gies <an...@wayofquality.de>.
Hi Mike, 

thanks for this. I am aware of the Eclipse tool. However, I was wondering if
something similar was there working on OSGi bundles and their manifests
rather than working on pom files. 

For example, with the Dependency graph I wouldn't see dependencies that I
have sucked into my OSGi container using the wrap: url support. Also, if I
have 3rd party bundles that have not been built with maven, I would be blind
to them I believe ?

I was thinking along the lines of a tool that kind of relates the
import/export packages of the bundles ?

Thanks
Andreas
 
-- 
View this message in context: http://karaf.922171.n3.nabble.com/Bundle-dependency-visualization-tp1864059p1864727.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Bundle dependency visualization

Posted by Mike Van <mv...@comcast.net>.


Eclipse has a great tool for this.  All you have to do is open your Eclipse project's pom.xml file, click on the "Dependency Graph" tab to view your dependencies. 



v/r, 



Mike Van 


----- Original Message ----- 
From: "Andreas Gies [via Karaf]" <ml...@n3.nabble.com> 
To: "Mike Van" <mv...@comcast.net> 
Sent: Monday, November 8, 2010 12:35:38 PM 
Subject: Bundle dependency visualization 

Hi, 

I am sorry if am posting to the wrong group (again ;). 

Is there a nice tool for bundle dependency visualization. I would be happy to get a dependency graph for the bundles deployed in a running container; but even better would be dependencies inside a given set of repositories. 

I noticed it took me the longest time in my prototype to handcraft the features files correctly. If I read an ealrier comment correctly, the maven-features-plugin is not considered a good choice to generate those. Is there a reason for that - perhaps it's just broken and needs fixing ? 

Thanks in advance 
Andreas 





View message @ http://karaf.922171.n3.nabble.com/Bundle-dependency-visualization-tp1864059p1864059.html 
To start a new topic under Karaf - User, email ml-node+930749-917263437-228489@n3.nabble.com 
To unsubscribe from Karaf - User, click here . 

-- 
View this message in context: http://karaf.922171.n3.nabble.com/Bundle-dependency-visualization-tp1864059p1864196.html
Sent from the Karaf - User mailing list archive at Nabble.com.