RE: Getting failure when creating Maven project from command prompt

Answered

Hi All,

Please help…

Getting error when running the following command…..

mvn archetype:generate DgroupId=com.univoxcommunity -Dartifa
ctId=uni -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=fals
e

 


ERROR:
Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>mvn archetype:generate DgroupId=com.univoxcommunity -Dartifa

ctId=uni -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=fals

e

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.270 s

[INFO] Finished at: 2014-10-23T10:21:12+05:30

[INFO] Final Memory: 3M/15M

[INFO] ------------------------------------------------------------------------

[ERROR] The goal you specified requires a project to execute but there is no POM

in this directory (C:\Windows\system32). Please verify you invoked Maven from t

he 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:\Windows\system32>

Add Comment
1 Answers
Best answer

HI,

I am not very good with Maven. But I noticed a mistake in your command, please try this and let me know:

mvn archetype:generate -DgroupId=com.univoxcommunity -DartifactId=uni -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Regards,
Lakshay Sharma

Professor Answered on October 23, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.