Getting error while running cucumber test from Maven

29 views
Skip to first unread message

Vinoth Kannan

unread,
Sep 14, 2016, 12:04:44 PM9/14/16
to Cukes
Hi,

i am getting the below error while running the cucumber test through maven. i know its a maven error, but please help me out in this as i dont find any other better place to get a answer.

C:\Users\vinothkannan>mvn test Dcucumber.options="--tags @SmokeTest"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.067 s
[INFO] Finished at: 2016-09-14T21:28:36+05:30
[INFO] Final Memory: 5M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
 in this directory (C:\Users\vinothkannan). Please verify you invoked Maven from
 the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
Exception


Thanks,
Vinoth

Paolo Ambrosio

unread,
Sep 14, 2016, 1:03:22 PM9/14/16
to cu...@googlegroups.com
"C:\Users\vinothkannan" -> "Please verify you invoked Maven from the
correct directory"
> --
> Posting rules: http://cukes.info/posting-rules.html
> ---
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cukes+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Vinoth Kannan

unread,
Sep 14, 2016, 2:27:55 PM9/14/16
to Cukes
How can I check that, I am new to this

Paolo Ambrosio

unread,
Sep 14, 2016, 2:39:44 PM9/14/16
to cu...@googlegroups.com
On Wed, Sep 14, 2016 at 7:27 PM, Vinoth Kannan
<vinothk...@gmail.com> wrote:

> How can I check that, I am new to this

If you don't know how an Apache Maven project is defined, you should
read its user manual instead of asking an unrelated question on
another mailing list.

You wrote that you don't know a better place to get an answer. Google
is usually the best place to look for answers to most questions:
http://lmgtfy.com/?q=how+to+run+maven+project&l=1


Paolo
Reply all
Reply to author
Forward
0 new messages