Updated library and sample to use maven.