Using JBoss fuse parent pom to define dependency versions breaks unit tests extending CamelBlueprintTestSupport

Solution Verified - Updated -

Issue

  • We are adding the fuse parent pom to dependency management section of pom, as below:
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.jboss.fuse.bom</groupId>
            <artifactId>jboss-fuse-parent</artifactId>
            <version>6.2.0.redhat-133</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-test-blueprint</artifactId>  
    </dependency> 

While this defines the versions of dependencies compatible with fuse it breaks any test extending CamelBlueprintTestSupport with the following looping exception:

    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
In main loop, we have serious trouble: java.lang.NullPointerException
java.lang.NullPointerException

Environment

  • Red Hat JBoss Fuse
    • 6.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content