Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Tags:
      osgi

      Description

      After adding OSGi metadata to zookeeper.jar it can be used as both an OSGi bundle as well as an ordinary jar file.
      In the CXF/DOSGi project the buildsystem does this using the maven-bundle-plugin: http://svn.apache.org/repos/asf/cxf/dosgi/trunk/discovery/distributed/zookeeper-wrapper/pom.xml

      The MANIFEST.MF generated by maven-bundle-plugin is attached to this bug, this works for the CXF/DOSGi project.
      If your buildsystem isn't using maven, I would advise to use bnd (http://www.aqute.biz/Code/Bnd). BND defines its own ant task in which you should be able to use more or less the same instructions as were used in maven:
      <instructions>
      <Bundle-Name>ZooKeeper bundle</Bundle-Name>
      <Bundle-Description>This bundle contains the ZooKeeper library</Bundle-Description>
      <Bundle-SymbolicName>org.apache.hadoop.zookeeper</Bundle-SymbolicName>
      <Bundle-Version>3.1.1</Bundle-Version>
      <Import-Package>*</Import-Package>
      <Export-Package>*;version=3.1.1</Export-Package>
      </instructions>

      Oh and one other thing. Is it really necessary to put the source code in the Jar file too? I would put that in a separate source distribution

      See also: http://mail-archives.apache.org/mod_mbox/hadoop-zookeeper-user/200905.mbox/%3c4A2009B1.3030603@yahoo-inc.com%3e

      1. zk_patch3.patch
        10 kB
        David Bosschaert
      2. MANIFEST.MF
        4 kB
        David Bosschaert
      3. buildxmlpatch.patch
        2 kB
        David Bosschaert

        Issue Links

          Activity

          David Bosschaert created issue -
          David Bosschaert made changes -
          Field Original Value New Value
          Attachment MANIFEST.MF [ 12409667 ]
          David Bosschaert made changes -
          Attachment zk_patch3.patch [ 12425484 ]
          Alan Cabrera made changes -
          Link This issue blocks ZOOKEEPER-584 [ ZOOKEEPER-584 ]
          David Bosschaert made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 3.1.1 [ 12313649 ]
          Fix Version/s 3.3.0 [ 12313976 ]
          Tags osgi
          David Bosschaert made changes -
          Attachment buildxmlpatch.patch [ 12425830 ]
          Benjamin Reed made changes -
          Hadoop Flags [Reviewed]
          Benjamin Reed made changes -
          Assignee Benjamin Reed [ breed ]
          Patrick Hunt made changes -
          Assignee Benjamin Reed [ breed ] David Bosschaert [ bosschaert ]
          Benjamin Reed made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Patrick Hunt made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Patrick Hunt made changes -
          Link This issue relates to ZOOKEEPER-749 [ ZOOKEEPER-749 ]
          Gavin made changes -
          Link This issue blocks ZOOKEEPER-584 [ ZOOKEEPER-584 ]
          Gavin made changes -
          Link This issue is depended upon by ZOOKEEPER-584 [ ZOOKEEPER-584 ]

            People

            • Assignee:
              David Bosschaert
              Reporter:
              David Bosschaert
            • Votes:
              6 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development