Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-6152

Fabric8 Maven Plugin deploy does not remove/replace the old bundle version.

XMLWordPrintable

    • % %
    • Hide

      1. unzip the attached sample application
      2. Execute mvn install fabric8:deploy
      3. Update the bundle version.
      4. Execute mvn install fabric8:deploy
      5. Check the profile. It will contain both version instead of only latest version.

      Show
      1. unzip the attached sample application 2. Execute mvn install fabric8:deploy 3. Update the bundle version. 4. Execute mvn install fabric8:deploy 5. Check the profile. It will contain both version instead of only latest version.

      I have a profile with bundle version 1.0, when I run fabric8:deploy for the same profile but different bundle version 1.1. Profile created does not remove/replace the old version 1.0. Profile contains both the version 1.0 and 1.1 of the same bundle.

      Different behaviour between 621084 and 621159 versions.
      In 621084, bundle version 1.0 is replaced by bundle 1.1 in the profile automatically.
      In 621159 version, profile version 1.1 is added along with 1.0.

      1. fabric8:deploy on JBoss Fuse 6.2.1.redhat-159 with bundle version 1.0.0

      JBossFuse:karaf@root> profile-display test 
      Profile id: test
      Version   : 1.0
      Attributes: 
      	abstract: false
      	parents: feature-camel
      Containers: 
      
      Container settings
      ----------------------------
      Bundles : 
      	mvn:com.test/Fabric8Deploy/1.0.0
      
      Agent Properties : 
      	  lastRefresh.test = 1475404305592
      
      
      Configuration details
      ----------------------------
      PID: io.fabric8.web.contextPath
        com.test/Fabric8Deploy Fabric8Deploy
      
      
      
      Other resources
      ----------------------------
      
      

      2. Executing fabric8:deploy on same profile(test) with bundle version 1.1

      JBossFuse:karaf@root> profile-display test 
      Profile id: test
      Version   : 1.0
      Attributes: 
      	abstract: false
      	parents: feature-camel
      Containers: 
      
      Container settings
      ----------------------------
      Bundles : 
      	mvn:com.test/Fabric8Deploy/1.0.0
      	mvn:com.test/Fabric8Deploy/1.1.0
      
      Agent Properties : 
      	  lastRefresh.test = 1475404422355
      
      
      Configuration details
      ----------------------------
      PID: io.fabric8.web.contextPath
        com.test/Fabric8Deploy Fabric8Deploy
      
      
      
      Other resources
      ----------------------------
      
      

      On 621084

            johnpoth John Poth
            rhn-support-shsingh Shailendra Singh
            Jan Kasztura Jan Kasztura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: