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

后端 未结 15 1416
南笙
南笙 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条回答
  •  旧时难觅i
    2020-12-02 12:14

    Adding one more answer for Windows users. If none of this solves the problems.

    Do not add space before or after =

    -DgroupId= com.company.module //Wrong , Watch the space after the equal to 
    -DgroupId=com.company.module //Right 
    

    Its better to put everything inside double quotes, like "-DgroupId=com.." This will give you exact error rather than some random error.

    Weird that , maven does not even care to mention this in the documentation.

提交回复
热议问题