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

后端 未结 15 1412
南笙
南笙 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

    On windows as far as I'm concerned you have to enclose all parameters with quotes.

    So if you want to create a maven webapp archetype you would do as follows:

    Prerequisites:

    1. Make sure you have maven installed and have it in your PATH environment variable.

    Howto:

    1. Open windows powershell
    2. mkdir MyWebApp
    3. cd MyWebApp
    4. mvn archetype:generate "-DgroupId=com.javan.dev" "-DartifactId=MyWebApp" "-DarchetypeArtifactId=maven-archetype-webapp" "-DinteractiveMode=false"

    Note: This is tested only on windows 10 powershell

提交回复
热议问题