Basically i am facing the issue in running the gatling execution with the package jar,
java.lang.IllegalStateException: Could not find policy ‘pick_first’. Make sure its implementation is either registered to LoadBalancerRegistry or included in META-INF/services/io.grpc.LoadBalancerProvider from your jar files.
i did the further search in the google, and found out that with the help of ServicesResourceTransformer, we could solve the issue.
ServicesResourceTransformer means “Relocated class names in
META-INF/services resources and merges them”. it is available in maven-shaeded-plugin during the building jar
but i want to use our gatling-maven-plugin to build the jar file with like this option(ServicesResourceTransformer)
<plugin> <groupId>io.gatling</groupId> <artifactId>gatling-maven-plugin</artifactId> <version>4.2.9</version> <configuration> <simulationsFolder>src/test/scala</simulationsFolder> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> <runMultipleSimulations>false</runMultipleSimulations> <simulationClass>gatling.test.example.simulation.gatlingSimulation</simulationClass> </configuration>
Note: i always the gatling:package to generate the jar
would need your suggestions or guidance to go ahead further.