I am deploying a Python app that has a package requiring some Java dependencies. I added a requirements.txt
file as well as a pom.xml
file to my repo and it seems that the Java dependencies aren't being picked up. Is there anything I need to add to my Procfile to make this work?
Some more context below:
I'm trying to deploy and use SuTime -- a python wrapper for a JAVA-based model by the Stanford NLP group -- with Heroku.
I am not familiar with Java and trying to figure out how to install the required dependencies.
The documentation mentions running the following command, which worked for me locally, but I haven't had any luck with Heroku. I guess it's just trying to generate a pom.xml
file which if I'm not mistaken is the equivalent of requirements.txt
for Java.
mvn dependency:copy-dependencies -DoutputDirectory=./jars -f $(python3 -c 'import importlib; import pathlib; print(pathlib.Path(importlib.util.find_spec("sutime").origin).parent / "pom.xml")')