Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个旧应用程序的 jar,我想在我正在处理的新项目中使用它。我正在将 OSGI 与 pax 一起使用。我知道使用 pax-wrap-jar 我们可以使用来自 maven repo 的 jat 创建一个包,但是我的 jar 在我的本地计算机中,所以我不知道该怎么做。任何帮助将不胜感激。
您需要将该本地 jar 安装到远程存储库
Pax-Wrap jar 只是将另一个 url-handler 广告到您的 osgi env,因此只需将其与 wrap 处理程序结合使用。 例如:
wrap:file:location-to-file/jar.jar