Error “The goal you specified requires a project to execute but there is no POM in this directory” after executing maven command

后端 未结 15 1413
南笙
南笙 2020-12-02 11:29

I have a pom.xml in C:\\Users\\AArmijos\\Desktop\\Factura Electronica\\MIyT\\componentes-1.0.4\\sources\\pom.xml and I executed:

mv         


        
15条回答
  •  生来不讨喜
    2020-12-02 12:15

    I got this error suddenly in Netbeans (but it worked from the command line) and it turns out some other program had changed the default directory of the command prompt. And because Netbeans runs "cmd /c" when invoking maven, it starts in an incorrect directory.

    Check out in Regedit the value for

    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\Autorun  
    

    If it has been set, you probably should remove it to fix the problem. (1)

    (I landed here when trying to resolve this issue, might not be 100% applicable to the current question - but might help others)

    (1) Changing default startup directory for command prompt in Windows 7

提交回复
热议问题