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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.