I have a 900MB jar (stanford-corenlp-models) that I want to exclude from dist so the generated zip file is smaller. I want it back on classpath at the time of deployment.
I added it to build.sbt
as
"edu.stanford.nlp" % "stanford-corenlp" % "3.9.1" % "provided" classifier "models-english"
I'm adding it back to /lib
during deployment, but its not loaded onto classpath.
Is there a different way to achieve this? My run command looks like
./bin/my-server -Dhttp.port=8080 -Dconfig.file=conf/prod.conf -J-Xmx512m -J-server &