Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4082

.kar file generated by karaf-maven-plugin does not contain all jars (no offline support)

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.0.4
    • Component/s: karaf
    • Labels:
      None

      Description

      The karaf-maven-plugin only adds the bundle/jar files to the repository that have been included using:

      <bundle start-level="30"/>
      

      The following definition types are not supported:

      <bundle start-level="30" dependency="true">
      

      or

      <conditional>
                  <condition>deployer</condition>
                  <bundle start-level="30">mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.spring/4.0.2</bundle>
       </conditional>
      

      ...this is not a problem if the machine is granted internet access - if not the .kar archive cannot be installed - it is not "self-contained".

      The described behaviour can be tested if configuring the file org.ops4j.pax.url.mvn.cfg the following way:

      org.ops4j.pax.url.mvn.localRepository=file:${karaf.home}/${karaf.default.repository}
      org.ops4j.pax.url.mvn.useFallbackRepositories=false
      org.ops4j.pax.url.mvn.defaultRepositories=\
          file:${karaf.home}/${karaf.default.repository}@id=system.repository@snapshots, \
          file:${karaf.data}/kar@id=kar.repository@multi@snapshots, \
          file:${karaf.base}/${karaf.default.repository}@id=child.system.repository@snapshots
      org.ops4j.pax.url.mvn.repositories=
      

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              death-knight Robert Weiser
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: