Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-3982

Can't update a SNAPSHOT osgi bundle to "latest" version with Jboss Fuse 7

    Details

    • Affects:
      Documentation (Ref Guide, User Guide, etc.), User Experience
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      After a week end of tentatives, i found out a workaround.

      You must set the updatepolicy to always like suggested from the
      https://access.redhat.com/solutions/2097131

      after that return to the file of Fuse
      /fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg

      and comment all the default local repository, so :
      BEFORE

      org.ops4j.pax.url.mvn.defaultRepositories = \
          file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
          file:${user.home}/.m2/repository@snapshots@id=local, \
          file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
      

      AFTER

      # org.ops4j.pax.url.mvn.defaultRepositories = \
      #    file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \
      #    file:${user.home}/.m2/repository@snapshots@id=local, \
      #    file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository}
      

      and now when i update a bundle on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION".

      Hope to save someone else time with this solution

      Show
      After a week end of tentatives, i found out a workaround. You must set the updatepolicy to always like suggested from the https://access.redhat.com/solutions/2097131 after that return to the file of Fuse /fuse-karaf-7.3.0/etc/org.ops4j.pax.url.mvn.cfg and comment all the default local repository, so : BEFORE org.ops4j.pax.url.mvn.defaultRepositories = \ file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \ file:${user.home}/.m2/repository@snapshots@id=local, \ file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository} AFTER # org.ops4j.pax.url.mvn.defaultRepositories = \ # file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository}, \ # file:${user.home}/.m2/repository@snapshots@id=local, \ # file:${karaf.base}/${karaf.default.repository}@snapshots@id=karaf.child.${karaf.default.repository} and now when i update a bundle on the karaf shell "DOWNLOAD AND INSTALL THE LATEST VERSION". Hope to save someone else time with this solution
    • Estimated Difficulty:
      Medium

      Description

      I have installed a Jboss Fuse Karaf version 7.3.0.
      I'm trying to update a SNAPSHOT osgi bundle, but it's keep to not download the latest version, but instead use the version already downloaded on the maven repository (/root/.m2 or standard /opt/fues-7.3.0/data/repository).

      I have tried the solution confirmed in this thread
      https://access.redhat.com/solutions/2097131
      but it's seems no to work.

      The only ugly solution i find is to delete the maven jar donwloaded on the repository and then the maven is force to call the remote repository and download the "latest" version.รน

      But i can't use the hawtio console in this use case.

      It's seems some configuration problem anyone have suggestion?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tenti88 Marco Tenti
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: