adding examples showing java integration including downloading from a local maven repo and dependsOn method