-
Bug
-
Resolution: Done
-
Critical
-
FIS 2.0
-
None
-
%
-
FIS 2.0 Sprint 9
The Karaf archetypes don't properly import the Fuse BOM, chaning the fuse.version and cxf.plugin versions to
<!-- fuse.version>6.3.0.redhat-187</fuse.version --> <fuse.version>6.3.0.redhat-198</fuse.version> <!-- cxf.plugin.version>3.1.5.redhat-630187</cxf.plugin.version --> <cxf.plugin.version>3.1.5.redhat-630198</cxf.plugin.version>
causes both versions to be deployed, causing errors at runtime (as two separate cxf bundles are deployed)
Note the missing Fuse BOM in the dependency management and the nonsentical comment (karaf2-cxf-rest archetype in this example
<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>
The pom file only use the fuse version for the features dependency:
<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>