in scripts/build_deps.py [0:0]
def build_deps():
"""
Extracts all the dependencies from the pom.xml and formats them into a form usable for setup.py or other
multilang daemon implementations
"""
(fh, filename) = mkstemp()
close(fh)
output_command = '-Doutput={temp}'.format(temp=filename)
subprocess.check_call(['mvn', 'dependency:tree', '-Dscope=runtime', output_command])
dependency_file = open(filename)
dependencies = [format_dependency(line) for line in dependency_file]
print(",\n".join(dependencies))