Maven Archetypes

Spent a few minutes reading some official Maven docs regarding Archetype generation & followed a simple create-from-project tutorial using a toy project I’m working on as a skeleton. The pieces of it finally sunk into place!

Essentially, it boils down to two steps: mvn archetype:create-from-project, followed by abstracting the generated archetype from target/generated-sources/archetype. After that, just polish and release!

I’ve looked into archetype creation many times before, but it always seemed so abstract that I never followed through creating my own. Some of my more recent build-resolution pains must have given me a bit more insight.

Now that I’ve seen I’ll probably build a few templates for my favorite Java stacks..