camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leber, Thomas" <>
Subject camel-test-blueprint includes camel-test, breaks java.nio.file.Files.probeContentType(source);
Date Tue, 06 Jun 2017 09:52:27 GMT
Hi all,

We are using blueprint and therefore we include camel-test-blueprint. This also includes Camel-core
dependencies with type "test-jar":


Problem is now that this contains a java service for " java.nio.file.spi.FileTypeDetector":

This one is specifying the class " org.apache.camel.component.file.MyFileTypeDetector":

We are using in our code NIO to probe file contents. In our jUnit test cases Java is detecting
the service and is therefore only loading " MyFileTypeDetector". 
This always returns "txt" for a file type.

We could fix this with adding an exclusion to our pom:


This is maybe something that should be fixed or at least mentioned in the camel documentation
for blueprint camel test.

Thomas Leber

View raw message