I have a jar which is pulled in to a build via Maven, and consequently the version is included in the name of the jar, for example:
newrelic-agent-5.0.0.jar
When exporting the JVM options, in order to run the jar this file needs to be included, however this has caused a problem if we want the JVM options to be agnostic of the version number, and accept whatever version is in the build.
If the JVM options are as follows:
export JVM_OPTS="... -javaagent:/path/to/lib/newrelic-agent. ? .jar"
What can the ? be replaced with such that the JVM options find the jar in question without specifying the version of the dependency? Assuming that there will only ever be one jar that will match this file name pattern.
newrelic-agent-*.jar*does not work in this case, nor does.*or%