I have to pom file as below to set a 4 JMeter system properties
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>${jmeter-maven-plugin.version}</version>
<configuration>
<skipTests>${skipNFTs}</skipTests>
<generateReports>true</generateReports>
<reportDirectory>${basedir}/target/reports/${performanceTest}</reportDirectory>
<logsDirectory>${basedir}/target/reports/${performanceTest}</logsDirectory>
<jmeterExtensions>
<artifact>org.apache.activemq:activemq-all:jar:5.16.0</artifact>
</jmeterExtensions>
<junitLibraries/>
<propertiesSystem>
<javax.net.ssl.trustStore>${project.build.directory}/target/jmeter/keystore/eskort_keystore.keystore</javax.net.ssl.trustStore>
<javax.net.ssl.trustStorePassword>P@ssw0rd</javax.net.ssl.trustStorePassword>
<javax.net.ssl.keyStore>${basedir}/target/jmeter/keystore/eskort_keystore.keystore</javax.net.ssl.keyStore>
<javax.net.ssl.keyStorePassword>P@ssw0rd</javax.net.ssl.keyStorePassword>
</propertiesSystem>
</plugin>
the output that i take is :
#Thu Jun 08 17:42:06 EEST 2023 javax.net.ssl.keyStore=C\:\\MyTools\\GitRepo\\Compliance\\performance/target/jmeter/keystore/eskort_keystore.keystore
javax.net.ssl.keyStorePassword=P@ssw0rd
avax.net.ssl.trustStore=C\:\\MyTools\\GitRepo\\Compliance\\performance\\targt/target/jmeter/keystore/eskort_keystore.keystore
javax.net.ssl.trustStorePassword=P@ssw0rd
sun.net.http.allowRestrictedHeaders=true
the problem is is not usable due to the C\ : at the beginning of the path .
how i can fix it ?
If your eskort_keystore.keystore
lives at the same folder where pom.xml - you should use ${project.basedir}/eskort_keystore.keystore
instead.
I don't know where did you get this "output" but Maven and Java should handle Windows file paths without any issues.
As you can see the Groovy script in the JSR223 Sampler checks the path and the presence of the keystore file under the given path and succeeds.
More information: Maven Properties Guide