From the course: Introduction to Maven
Unlock this course with a free trial
Join today to access over 25,100 courses taught by industry experts.
Understanding archetypes - Maven Tutorial
From the course: Introduction to Maven
Understanding archetypes
- [Instructor] Well, they aren't really a basic aspect of Maven itself. I want to at least introduce archetypes to you, as I have found them to be very powerful constructs when working with Maven. So, before we get too deep, let's talk about what they are. In short, an archetype is a project template using Maven. You specify an archetype when creating a new project if you choose, and that way, Maven will build the project structure or structures for you based on the template or archetype. This is a great tool for teams wanting to build consistently structured artifacts, or to specify specific constructs within the artifacts. Ultimately, they become a project of their own. Now, while creating an archetype is outside the scope of this course, I do want to give you some high-level use cases for it. I have used them for package structures of artifacts when I first introduced restful web services for a company I was working at. We built a strategy for a reactor build for each domain web…