migrate to maven, include java.nio solution