Added conditional download of jdk and maven.