How to run tests with a JVM flag which points to a dependency jar?

The scala package I’m writing depends on jamm which requires a flag like the following to be set on the JVM:


I tried setting the JAVA_OPTS environment variable through the CircleCI interface but I get the following error during the sbt:compile phase:

Error opening zip file or JAR manifest missing : "~/.ivy2/cache/com.github.jbellis/jamm/jars/jamm-0.3.3.jar"

The good thing is that the flag is being read, but I’m not sure how to figure out what place I should be pointing it to. I’m restoring my ~/.ivy2 directory from cache, and my build file has compiled on previous runs so it should be in there.

For anyone who finds this, I just needed to change the environment variable to


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.