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

后端 未结 15 1460
挽巷
挽巷 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 09:44

    Another problem with Windows (Vista ,Windows 7 onward) is that the command prompt should be running under Administrative privileges (Right click command prompt shortcut and choose "Run ad Administrator" if UAC is on), so simply run command prompt as Administrator before executing mvn archetype:generate.

    I had faced this issue while creating vaadin 7 project under windows 7 using following command.

    mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.1.8 -DgroupId=im.sma.testproject -DartifactId=testproject -Dversion=1.0 -Dpackaging=war
    
    • SMA

提交回复
热议问题