Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top