# Need help for POM file

**URL:** <https://community.gatling.io/t/need-help-for-pom-file/6109>\
**Category:** Gatling (Open-Source)\
**Created:** [May 21, 2021, 10:53am UTC](https://community.gatling.io/t/need-help-for-pom-file/6109 "2021-05-21T10:53:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nidhish](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@Nidhish](https://community.gatling.io/u/Nidhish)\
**Post date:** [May 21, 2021, 10:53am UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/1 "2021-05-21T10:53:53Z")

</div>

Hi all,

i need help for POM file specially for gatling-maven-plugin.  
I opened an project in Intellij Idea IDE which was working earlier(last year) and was created by other user.  
I m facing issue now like when i want to execute my test cases after compiling code, it gives error:  
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. → [Help 1]

I am not sure what i am missing. I tried other available goal like test, recorder instead of ‘execute’ but it dont execute mu code.

Also i am not able to find god documentation for this. Can you please help for this. This is urgent.

Regards,  
Nidhish.

 ![goal-phase.JPG](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/6fe96384ef139464da6eeb6f6b6e22bcaf18269c.jpeg)

---

<div class="post-metadata">

**Author:** ![Mohan](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Mohan](https://community.gatling.io/u/Mohan)\
**Post date:** [May 21, 2021, 11:03am UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/2 "2021-05-21T11:03:04Z")

</div>

What’s the maven command you are using?  
Best /Mohan

---

<div class="post-metadata">

**Author:** ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)\
**Post date:** [May 21, 2021, 11:37am UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/3 "2021-05-21T11:37:55Z")

</div>

Hi!

Did you look at the [demo project](https://github.com/gatling/gatling-maven-plugin-demo)?

Cheers!

---

<div class="post-metadata">

**Author:** ![Nidhish](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@Nidhish](https://community.gatling.io/u/Nidhish)\
**Post date:** [May 21, 2021, 4:51pm UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/4 "2021-05-21T16:51:30Z")

</div>

Hi Sebastian,

I referred that project in morning which was also mentioned on [gatling.io/docs/current/extensions/maven\_plugin/#maven-plugin](http://gatling.io/docs/current/extensions/maven_plugin/#maven-plugin)  
I updated all latest vales as per the POM file mentioned on github, but i am still getting error.

I just opened old code folder in Intellij idea, it already have scala plugin installed. I performed Build project step, compiled code and then run.  
I am not sure id some commands need to be executed.  
Apologies but i never worked on intellijidea and i am very new to this stuff.  
Expecting your guidance.

---

<div class="post-metadata">

**Author:** ![Nidhish](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@Nidhish](https://community.gatling.io/u/Nidhish)\
**Post date:** [May 21, 2021, 4:52pm UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/5 "2021-05-21T16:52:13Z")

</div>

Hi Mohan,

I am not sure about any command.

I just opened old code folder in Intellij idea, it already have scala plugin installed. I performed Build project step, compiled code and then run.  
I am not sure id some commands need to be executed.  
Apologies but i never worked on intellijidea and i am very new to this stuff.  
Expecting your guidance.

---

<div class="post-metadata">

**Author:** ![Mohan](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Mohan](https://community.gatling.io/u/Mohan)\
**Post date:** [May 21, 2021, 5:24pm UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/6 "2021-05-21T17:24:40Z")

</div>

You should execute it from the command prompt/terminal

Use the command at the root directory of the project and execute following command

mvn gatling:test

Here are the steps

[https://github.com/gatling/gatling-maven-plugin-demo](https://github.com/gatling/gatling-maven-plugin-demo)

It’s time to learn about maven

Best /Mohan

---

<div class="post-metadata">

**Author:** ![Nidhish](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@Nidhish](https://community.gatling.io/u/Nidhish)\
**Post date:** [May 24, 2021, 5:45am UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/7 "2021-05-24T05:45:20Z")

</div>

Hi Mohan,

yes I agree I need to learn about Maven. If you can provide me some reference websites, that will be helpful.  
Here is update. When i used plugins latest version values in POM file, it gives me error. and when i used old pom file, and ran command from cmd prompt: mvn gatling:test, it worked fine and test ran executed successfully. here is screenshot.  
However, after that when i clicked on Run button in Intellij Idea, it still complaining for that goal. Can you please help.

 ![test command.JPG](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/42d0fe0519aeb38d0c4ac7419c7f1edc62b16323.jpeg)

 ![execute error.jpg](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/dc9052d610ce279180315743b0db02a7a83d19a8.jpeg)

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 24, 2021, 6:25am UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/8 "2021-05-24T06:25:24Z")

</div>

Most likely, you’ve been learning from a very old and unreliable source.  
The goal was named “execute” a long time ago in Gatling 2 and was renamed into “test”.

Please check to the official documentation: [https://gatling.io/docs/current/extensions/maven\_plugin/#running-from-maven-lifecycle](https://gatling.io/docs/current/extensions/maven_plugin/#running-from-maven-lifecycle)

---

<div class="post-metadata">

**Author:** ![Nidhish](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@Nidhish](https://community.gatling.io/u/Nidhish)\
**Post date:** [May 24, 2021, 7:58am UTC](https://community.gatling.io/t/need-help-for-pom-file/6109/9 "2021-05-24T07:58:20Z")

</div>

Thanks Stephane,

I tried test goal also before shooting my question in the forum. Even now i tried it but still complaining about it.  
AM i using correct phase? earlier it was ‘test’ and its valid now also i think.

 ![image.png](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/7cb2d9a878d2027a5b0dbfb6627842d6fae0e375.png)
