# Getting "The plugin 'org.apache.maven.plugins:maven-gatling-plugin' does not exist or no valid version could be found" when trying to run "gatling-maven-plugin-demo-master" from github.

**URL:** <https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683>\
**Category:** Gatling (Open-Source)\
**Created:** [November 18, 2013, 7:46pm UTC](https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683 "2013-11-18T19:46:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uguduru](https://avatars.discourse-cdn.com/v4/letter/u/87869e/32.png) [@uguduru](https://community.gatling.io/u/uguduru)\
**Post date:** [November 18, 2013, 7:46pm UTC](https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683/1 "2013-11-18T19:46:33Z")

</div>

Hi Everyone,

I am new to Gatling and even newer to Maven and Jenkins. So, please excuse my lack of knowledge in these areas.

I am trying to configure some gatling scenarios(which I am able to run using the .bat file on my machine) on Jenkins. Before trying to run it with jenkins, I wanted to run it on my local machine using maven for which, I installed maven 2.2.1 and downloaded the plugin demo from github([https://github.com/excilys/gatling-maven-plugin](https://github.com/excilys/gatling-maven-plugin)). When trying to run the command “mvn gatling:execute -Dgatling.simulation=basic.BasicExampleSimulation” from command line, I am getting the following error.

[INFO] Scanning for projects…  
[INFO] Searching repository for plugin with prefix: ‘gatling’.  
[INFO] ------------------------------------------------------------------------  
[ERROR] BUILD ERROR  
[INFO] ------------------------------------------------------------------------  
[INFO] The plugin ‘org.apache.maven.plugins:maven-gatling-plugin’ does not exist or no valid version could be found  
[INFO] ------------------------------------------------------------------------  
[INFO] For more information, run Maven with the -e switch  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: \< 1 second  
[INFO] Finished at: Mon Nov 18 10:00:38 EST 2013  
[INFO] Final Memory: 6M/244M  
[INFO] ------------------------------------------------------------------------

I didn’t make any changes to any of the files in the repo including the pom file.  
If this run’s, I want to copy my simulations in to this folder and will try to run them from Jenkins(already installed the Gatling plugin).  
Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Spencer\_Chastain](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Spencer\_Chastain](https://community.gatling.io/u/Spencer_Chastain)\
**Post date:** [November 18, 2013, 7:55pm UTC](https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683/2 "2013-11-18T19:55:00Z")

</div>

In the pom.xml, try replacing 2.0.0-SNAPSHOT with 2.0.0-M3a. There are two occurrences that will need to be changed.

If it complains that you need to choose a simulation, replace -Dgatling.simulation to -Dgatling.simulationClass on the command line (I chased my tail for about 20 minutes over this one earlier today)

If that still doesn’t work, let me know. There’s an older project template you can use that has worked for me. But give this a shot first.

–Spencer

---

<div class="post-metadata">

**Author:** ![uguduru](https://avatars.discourse-cdn.com/v4/letter/u/87869e/32.png) [@uguduru](https://community.gatling.io/u/uguduru)\
**Post date:** [November 18, 2013, 8:10pm UTC](https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683/3 "2013-11-18T20:10:35Z")

</div>

Hi Spencer,

Thanks for the quick reply.  
gatling.version is already set to 2.0.0-M3a and I tried using -Dgatling.simulationClass but still getting the same error.

---

<div class="post-metadata">

**Author:** ![Spencer\_Chastain](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Spencer\_Chastain](https://community.gatling.io/u/Spencer_Chastain)\
**Post date:** [November 18, 2013, 8:15pm UTC](https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683/4 "2013-11-18T20:15:07Z")

</div>

Below is the POM I use. It works fine for me, though I have to use -Dgatling.simulationClass=foo.bar

If that doesn’t work, include a recursive list of your src directory and the command line you’re using.

–Spencer

4.0.0

io.gatling  
gatling-maven-plugin-demo  
2.0.0-M3a  
jar

excilys Excilys Repository [http://repository.excilys.com/content/groups/public](http://repository.excilys.com/content/groups/public) excilys Excilys Repository [http://repository.excilys.com/content/groups/public](http://repository.excilys.com/content/groups/public) UTF-8 2.0.0-M3a io.gatling.highcharts gatling-charts-highcharts ${gatling.version} test io.gatling gatling-maven-plugin 2.0.0-M3a test execute advanced/\*.scala

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [November 18, 2013, 8:17pm UTC](https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683/5 "2013-11-18T20:17:38Z")

</div>

Hi,

Looking at the error you got, I think that you don’t set the groupId for the gatling-maven-plugin.  
You can skip a plugin’s groupId if it’s a “core” Maven plugin because Maven will automatically set the groupId to ‘org.apache.maven.plugins’.  
However Gatling Maven Plugin’s groupId is ‘io.gatling’, not ‘org.apache.maven.plugins’ 😉

Spencer’s plugin config is fine, if you copy the groupId and artifactId from his config, the plugin will work just fine !

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![uguduru](https://avatars.discourse-cdn.com/v4/letter/u/87869e/32.png) [@uguduru](https://community.gatling.io/u/uguduru)\
**Post date:** [November 18, 2013, 9:08pm UTC](https://community.gatling.io/t/getting-the-plugin-org-apache-maven-plugins-maven-gatling-plugin-does-not-exist-or-no-valid-version-could-be-found-when-trying-to-run-gatling-maven-plugin-demo-master-from-github/683/6 "2013-11-18T21:08:52Z")

</div>

Hi Spencer,

I had the same pom file and It is working now. The mistake I did is, I tried to run the mvn command from a different folder than the actual one which has the code.  
Thanks for the help.
