Good way to “wrap” jars for OSGi with Maven

后端 未结 4 1707
名媛妹妹
名媛妹妹 2021-02-10 03:32

I was looking at the PAX tools on OPS4J for example: this one and I thought I\'d found a nice way to:

  • Specify an artifact
  • Create an assembled jar (jar tha
4条回答
  •  感动是毒
    2021-02-10 04:25

    You have to maintain a local POM to get this done. There's not a utility that will take in a library/jar and spit out the appropriate OSGi MANIFEST in a jar. ServiceMix, along with Spring, have a lot of things already bundled up that you can use as examples. Two such examples I suggest looking at are:

    • commons-io - simple library wrapper
    • OpenJPA - wraps the main jar and brings in the dependencies with it

提交回复
热议问题