In the run configuration of eclipse, you are provided with a set of default variables that you can use in the VM arguments, like
What I want to access is a classpath variable,
M2_REPO, but can't see a way of doing this. I need to specify a javaagent in the VM arguments, which requires a path to a jar file. This jar file lives in the maven repository, but I can't find a way of specifying the path to the maven repository using the already configured
M2_REPO Classpath variable (configured in
What I would like to do is use this as my VM arguments but can't because
classpath_var isn't a real variable.