Improvements/dev 111 improve java maven cookbook

details: https://issues.teracy.org/browse/DEV-111
should `repositories.strip().empty?`?