Remove warnings and add commons-io dependency in pom.