In the eclipse startup configuration, you are provided with a set of default variables that can be used in VM arguments, such as container_path and env_var .
I want to access the classpath variable, M2_REPO , but I see no way to do this. I need to specify javaagent in the VM arguments, which requires a path to the jar file. This jar file is in the maven repository, but I canβt find a way to specify the path to the maven repository using the already configured M2_REPO Classpath variable (configured in windows preferences java Build Path Classpath variable ). I would like to use this as my VM arguments, but I cannot, because classpath_var not a real variable.
-javaagent:${classpath_var:M2_REPO}/org/apache/openjpa/openjpa/2.1.0/openjpa-2.1.0.jar
Is there any other way to access the value of M2_REPO in VM arguments?
source share