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

后端 未结 15 1399
南笙
南笙 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:34

    This link helped: https://stackoverflow.com/a/11199865/1307104

    I edit my command by adding quotes for every parameter like this:

    mvn install:install-file "-DgroupId=org.mozilla" "-DartifactId=jss" "-Dversion=4.2.5" "-Dpackaging=jar" "-Dfile=C:\Users\AArmijos\workspace\componentes-1.0.4\deps\jss-4.2.5.jar"

    It's worked.

提交回复
热议问题