Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to get detailed bundles dependency information from pom.xml?

Avatar

Avatar
Springboard
Level 3
jkpanera
Level 3

Likes

18 likes

Total Posts

107 posts

Correct Reply

2 solutions
Top badges earned
Springboard
Establish
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Springboard
Level 3
jkpanera
Level 3

Likes

18 likes

Total Posts

107 posts

Correct Reply

2 solutions
Top badges earned
Springboard
Establish
Validate 10
Validate 1
Ignite 5
View profile
jkpanera
Level 3

25-11-2020

So I have a pom which creates a bundle using the plugin:

 

<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>

It specifies the package dependencies:

 

<Import-Package>
!org.apache.commons.beanutils.*,
!org.apache.commons.jexl2.*,
!org.apache.commons.jxpath.*,
!org.apache.commons.logging.*,
!org.apache.commons.vfs2.*,
!org.apache.xml.*,
!org.springframework.*,
*
</Import-Package>

 But it doesn't call out versions. I think those are from maven dependencies but those dependencies are on bundles-not on packages and it isn't clear without a lot of digging which package corresponds to which bundle. It also isn't clear what the versions of the packages are.

 

And is there any way to find out the transitive bundle dependencies? This dependency mechanism is incredibly complex and frustrating.

 

Basically, I want mvn dependency:tree but for OSGI dependencies rather than maven dependencies.

 

Thanks!

bundle maven osgi

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Give Back
Level 2
narendragandhi
Level 2

Likes

17 likes

Total Posts

14 posts

Correct Reply

6 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Give Back
Level 2
narendragandhi
Level 2

Likes

17 likes

Total Posts

14 posts

Correct Reply

6 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile
narendragandhi
Level 2

03-12-2020

Hi @jkpanera ,

 

You could use http://localhost:4502/system/console/depfinder to find out for a package which bundles are importing and exporting that package. Hope this helps. Let me know if this is not what you are looking for ?

 

Thanks

Narendra

Avatar

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct Reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct Reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ankur_Khare
MVP

25-11-2020