Java – package OSGi project as a jar?

I have a large OSGi package that I want to package and publish as a single jar file I want to find out what is the best way to pack multiple cans into one big can

So far, the best choice I've seen seems to be a jar project However, the framework we use extracts jar files from the 'plugins' directory, and one jar seems to want / require all jar files to be stored only in the Lib directory There may be a simple way to solve this problem. I don't fully understand the architecture because I'm still trying to determine which method is the best

Any suggestions on how to package multiple OSGi packages into one jar and / or how I will make it work in one jar are commendable

thank you

Solution

Another solution might be to run bundles using pojosr instead of running them in the OSGi framework In short, pojosr implements OSGi service layer without module layer One side effect is that you can easily package your application as an executable jar file When running the jar, it also does not need to create a bundle cache on disk

For more information about pojosr, visit:

> http://code.google.com/p/pojosr/ > http://luminis-technologies.com/?p=358 > http://www.infoq.com/news/2011/10/pojosr

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>