Karaf
  1. Karaf
  2. KARAF-1759

No Way To Start obr Dependencies By Default

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.9
    • Fix Version/s: 2.2.10, 2.3.0, 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      The discussion for this issue comes from here:

      http://karaf.922171.n3.nabble.com/A-Basic-OBR-Question-td4025744.html

      In summary, if I create a feature like this:

      <features name="myfeatures-1.0.0-SNAPSHOT" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
      <feature name="myfeature" description="My Great Feature" version="1.0.0-SNAPSHOT" resolver="(obr)">
      <bundle start-level="80">mvn:com.mycompany/myfeature-bundle/1.0.0-SNAPSHOT</bundle>
      </feature>
      </features>

      which pulls bundles in from an obr repository, these bundles are not started and there is no way to automatically start them.

      In the short term, it would be good to at least add the following configuration items to org.apache.karaf.features.obr.cfg:

      startBundlesByDefault = true/false
      defaultStartLevel = <number between 1 and 100>

      which could be picked up by the obr resolver and added to each BundleInfo.

      As well (this perhaps should be a separate defect), currently the obr resolved bundles are started after the feature bundles. It would be better if the order was reversed in case the feature bundles are dependent on the bundle ordering.

      1. KARAF-1759.txt
        5 kB
        Gareth Collins

        Activity

        Gareth Collins created issue -
        Gareth Collins made changes -
        Field Original Value New Value
        Attachment KARAF-1759.txt [ 12542158 ]
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 2.2.10 [ 12322541 ]
        Fix Version/s 2.3.0 [ 12320554 ]
        Fix Version/s 3.0.0 [ 12316040 ]
        Jean-Baptiste Onofré made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Gareth Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development