Maven Installation issue | Selenium Forum
M
Posted on 05/06/2016
Maven installation issue as after installing MAVEN and setting up the environment variable etc. when i try to un on CMD prompt then i am getting an error:---(Please refer screenshot for more info)

Help me out guys and please describe the steps in detail to rectify the issue.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3
.1:install (default-cli): Goal requires a project to execute but there is no POM
in this directory (C:\Users\Administrator). Please verify you invoked Maven fro
m 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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
C:\Users\Administrator>mvn install:install-file -Dfile=path-to-your-artifact-jar
-DpomFile=path-to-pom
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-po
m ---

M
Replied on 06/06/2016

try

[color=#FF0000:6uycz37z]mvn -version[/color:6uycz37z]


M
Replied on 08/06/2016

Try it with mvn - version and same issue.
Screenshot attached for the issue

Responsive image

M
Replied on 09/06/2016

no space

mvn -version


M
Replied on 10/06/2016

Try it everything but nothing works...

please see the screenshot.

Responsive image

M
Replied on 10/06/2016

The maven cannot find the pom.xml, Go to the proejct and run the same where pom.xml is present in that folder.

If you have not created project then create it.