Improved the pom.xml
MimetypesFileMap not working correctly since java6u26, fixed only in java8b21. Replaced it with Files.probeContentType.