mvn archetype:generate does not work-no plugin found for prefix 'archetype'

后端 未结 15 1524
挽巷
挽巷 2020-12-01 09:05

I want to build a simple project using a existing archetype. But I can\'t run mvn archetype:generate as it keeps telling me the following information

         


        
15条回答
  •  无人及你
    2020-12-01 10:06

    The command you should be using to generate a project with an archetype is...

    mvn archetype:generate
    

    The command you posted in your question was wrong (missing the first 'e' in archetype). I assume this is just a typo in SO though because the error you posted had archetype spelled correctly.

    I believe this error will occur if you are trying to execute this command from a directory that already has a pom.xml file in it. It will try to find an archetype plugin configuration inside the existing pom.xml file.

    Try the command again in an empty directory, or at least in one that doesn't have a pom.xml file and it should work.

提交回复
热议问题