문제

In IntelliJ IDEA, Select "File-->New Project-->Maven-->Next", then we will see a list of archetypes.

In terminal, if we input the command: mvn archetype:generate, we would find another list of archetypes.

The problem is that these two lists are different. I know the second list consists of "remote" and "local", but I've no idea where the first archetype list comes from.

In special, How can I choose "local" archetype from the first list? I installed my own archetype, but I can't find it in the first list.

도움이 되었습니까?

해결책

In special, How can I choose "local" archetype from the first list? I installed my own archetype, but I can't find it in the first list.

After applying

"File-->New Project-->Maven-->Next"

Check "Create from Archetype" and click "Add Archetype" button

enter image description here

Fill in the archetype GAV coordinates and optionally the Repository if you had deployed your archetype to a Maven repository.

Next time you will create a new maven project in IDEA, your own archetype will appear in the archetypes list

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top