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

Please clarify support for updating Fuse version in Karaf projects

XMLWordPrintable

    • % %
    • FIS 2.0 Sprint 9

      Currently the Karaf quickstarts, such as https://github.com/fabric8-quickstarts/karaf2-cxf-rest/blob/karaf2-cxf-rest-1.0.0.redhat-000006/pom.xml contains

      <dependencyManagement>
          <dependencies>
            <!-- fabric8 bom must be before fabric8 bom -->
            <dependency>
              <groupId>io.fabric8</groupId>
              <artifactId>fabric8-project-bom-fuse-karaf</artifactId>
              <version>${fabric8.version}</version>
              <type>pom</type>
              <scope>import</scope>
            </dependency>
          </dependencies>
        </dependencyManagement>
      
      ..
      
      <dependency>
            <!-- scope is compile so all features (there is only one) are installed into startup.properties,
            and the feature repo itself is not added in etc/org.apache.karaf.features.cfg file -->
            <groupId>org.jboss.fuse</groupId>
            <artifactId>fuse-karaf-framework</artifactId>
            <version>${fuse.version}</version>
            <type>kar</type>
            <!-- no need to download kar dependencies -->
            <exclusions>
              <exclusion>
                <groupId>*</groupId>
                <artifactId>*</artifactId>
              </exclusion>
            </exclusions>
      </dependency>
      

      This suggests user can change the fuse.version (e.g. for a patch release).

      Currently this leads to a problem like https://issues.jboss.org/browse/OSFUSE-443, as updating the "fuse.version" updates only the feature files, but not maven dependencies and this leads to both versions to be put into the assembly.

      Do we even want to support such approach?

      If yes, we need to fix OSFUSE-443 somehow... (possibly by going back to the original FIS 1.0 way of having both the Fuse BOM + fis BOM? )

      If no, we should perhaps remove the fuse.version property and have the fuse-karaf-framework managed in the fabric8-project-bom-fuse-karaf BOM (and we would need to update the BOM with Fuse rollups... )

              Unassigned Unassigned
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: