How to use my custom archetype with Maven?

后端 未结 2 791
名媛妹妹
名媛妹妹 2021-02-13 12:43

I just create my custom archetype project, and I run perfectly the \"mvn install\" command.

In my local repository, my archetype project was added corre

2条回答
  •  没有蜡笔的小新
    2021-02-13 13:22

    To install the archetype run the following maven command:-

    mvn clean install archetype:update-local-catalog
    

    This would basically create an xml file corresponding to the archetype catalog in your repository. Hereafter, you can go the Maven Archetypes setting in your IDE and select Add Local Cataglog option and provide this local catalog path. Now, it should be visible while you are creating the new maven project from your IDE.

提交回复
热议问题