Ouput labels and terms to files, and add dependencies JAR files.