i am an fresh man in osgi,and i wonder how to indicate the packages those don't need export/import using bnd API
Asked
Active
Viewed 147 times
0
-
Don't down vote new users, especially without advising why. It's mean and cowardly. – earcam May 28 '13 at 15:59
1 Answers
2
Just don't export them. All packages inside your bundle that are not explicitly exported with Export-Package
are implicitly private.

Neil Bartlett
- 23,743
- 4
- 44
- 77
-
Thanks a lot. i am coding for a maven plugin and i want to use bnd api to analyze the non-osgi jar,but i can't find how to do this. – user2328774 May 23 '13 at 07:06
-
You don't need to do anything. The Maven bundle plugin already uses bnd internally so it will analyse the contents of the JAR for you. – Neil Bartlett May 23 '13 at 07:17
-