Is it possible to configure PATH for the plugin execution?
Thanks
Luke
On Wednesday, 16 May 2012 20:21:51 UTC+10, Ardesco wrote:
> If you add them as dependencies to the plugin they will be added to the
> path, e.g.:
>
>
>
> <groupId>com.lazerycode.jmeter</groupId>
> <artifactId>jmeter-maven-plugin</artifactId>
> <version>1.4.1</version>
> <executions>
> <execution>
> <id>jmeter-tests</id>
>
Currently we clear out the $PATH variable just before invoking JMeter, and let JMeter build it by itself.
See line 295 of https://github.com/Ronnie76er/jmeter-maven-plugin/blob/master/src/main/java/com/lazerycode/jmeter/JMeterAbstractMojo.java
(Short Link in case the long one above is broken by google groups)
How would you normally do this if you weren’t invoking JMeter through maven?
Are you looking for this?
Setting System Properties
JMeter can set system properties, these are global environment properties accessible by all applications running in the same JVM (They are not accessible outside the JVM).
To set system properties you will need to specify each property in your <<<pom.xml>>> in the config element <<propertiesSystem>>. (The example below shows a property called <<my.system.property>> being set).
The properties are merged into the JMeter properties file "system.properties" and overwrite identical properties within the file.
+---+
<project>
[...]
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<configuration>
<propertiesSystem>
<my.system.property>my.system.property.value</my.system.property>
</propertiesSystem>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
[...]
</project>
To view this discussion on the web, visit https://groups.google.com/d/msg/maven-jmeter-plugin-users/-/Zv6Grf44-AcJ.