I have a situation of running a jar file. I have added the jar file in maven repo and added the dependency in my pom. I am trying to run following command in java file using process executer.
pom dependency:
<dependency>
<groupId>com.vmware.vcac.qe.tools</groupId>
<artifactId>vcac-tools</artifactId>
<version>1.0.0</version>
</dependency>
Code in java:
String command = "java -cp " + jarPath + " " + className + " " + propertiesFilePath;
Runtime.getRuntime().exec(command);
I want to get the jar file path from maven. What should be the value of jarPath
in above command
string?