Skip to content

Commit

Permalink
remplace tab with 2 space in the pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
DABURON Vincent committed Jan 16, 2024
1 parent a00747a commit 2b64052
Showing 1 changed file with 69 additions and 69 deletions.
138 changes: 69 additions & 69 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,75 +177,75 @@ Paths are relative to the home maven project
A pom.xml example, the elk_apm_version is set to "1.37.0" for the apm agent and the apm library but you could choose another version :
```XML
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.vdaburon.jmeter</groupId>
<artifactId>gestdoc-maven-launch-loadtest-apm</artifactId>
<version>1.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<jvm_xms>256</jvm_xms>
<jvm_xmx>756</jvm_xmx>

<!-- ELK APM -->
<elk_apm_version>1.37.0</elk_apm_version>
<elk_apm_service_name>YourServiceNane</elk_apm_service_name>
<elk_apm_environment>YourEnvironment</elk_apm_environment>
<elk_apm_urls>http://apm_server:8200</elk_apm_urls>
</properties>

<build>
<plugins>
<plugin>
<!-- launch test : mvn clean verify -->
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>3.6.1</version>
<executions>
<!-- Generate JMeter configuration -->
<execution>
<id>configuration</id>
<goals>
<goal>configure</goal>
</goals>
</execution>
<!-- Run JMeter tests -->
<execution>
<id>jmeter-tests</id>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<configuration>
<jmeterVersion>5.5</jmeterVersion>
<testPlanLibraries>
<artifact>co.elastic.apm:apm-agent-api:${elk_apm_version}</artifact>
</testPlanLibraries>
<downloadExtensionDependencies>false</downloadExtensionDependencies>
<jMeterProcessJVMSettings>
<xms>${jvm_xms}</xms>
<xmx>${jvm_xmx}</xmx>
<arguments>
<argument>-javaagent:${project.build.directory}/jmeter/testFiles/elastic-apm-agent-${elk_apm_version}.jar</argument>
<argument>-Delastic.apm.service_name=${elk_apm_service_name}</argument>
<argument>-Delastic.apm.environment=${elk_apm_environment}</argument>
<argument>-Delastic.apm.server_urls=${elk_apm_urls}</argument>
<argument>-Duser.language=en</argument>
</arguments>
</jMeterProcessJVMSettings>
<testFilesIncluded>
<jMeterTestFile>script1_add.jmx</jMeterTestFile>
</testFilesIncluded>
<generateReports>false</generateReports>
<testResultsTimestamp>false</testResultsTimestamp>
<resultsFileFormat>csv</resultsFileFormat>
</configuration>
</plugin>
</plugins>
</build>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.vdaburon.jmeter</groupId>
<artifactId>gestdoc-maven-launch-loadtest-apm</artifactId>
<version>1.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<jvm_xms>256</jvm_xms>
<jvm_xmx>756</jvm_xmx>

<!-- ELK APM -->
<elk_apm_version>1.37.0</elk_apm_version>
<elk_apm_service_name>YourServiceNane</elk_apm_service_name>
<elk_apm_environment>YourEnvironment</elk_apm_environment>
<elk_apm_urls>http://apm_server:8200</elk_apm_urls>
</properties>

<build>
<plugins>
<plugin>
<!-- launch test : mvn clean verify -->
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>3.6.1</version>
<executions>
<!-- Generate JMeter configuration -->
<execution>
<id>configuration</id>
<goals>
<goal>configure</goal>
</goals>
</execution>
<!-- Run JMeter tests -->
<execution>
<id>jmeter-tests</id>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<configuration>
<jmeterVersion>5.5</jmeterVersion>
<testPlanLibraries>
<artifact>co.elastic.apm:apm-agent-api:${elk_apm_version}</artifact>
</testPlanLibraries>
<downloadExtensionDependencies>false</downloadExtensionDependencies>
<jMeterProcessJVMSettings>
<xms>${jvm_xms}</xms>
<xmx>${jvm_xmx}</xmx>
<arguments>
<argument>-javaagent:${project.build.directory}/jmeter/testFiles/elastic-apm-agent-${elk_apm_version}.jar</argument>
<argument>-Delastic.apm.service_name=${elk_apm_service_name}</argument>
<argument>-Delastic.apm.environment=${elk_apm_environment}</argument>
<argument>-Delastic.apm.server_urls=${elk_apm_urls}</argument>
<argument>-Duser.language=en</argument>
</arguments>
</jMeterProcessJVMSettings>
<testFilesIncluded>
<jMeterTestFile>script1_add.jmx</jMeterTestFile>
</testFilesIncluded>
<generateReports>false</generateReports>
<testResultsTimestamp>false</testResultsTimestamp>
<resultsFileFormat>csv</resultsFileFormat>
</configuration>
</plugin>
</plugins>
</build>
</project>
```
### Usage Maven
Expand Down

0 comments on commit 2b64052

Please sign in to comment.