From the course: Introducing Maven
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Understanding archetypes
- [Instructor] While they aren't really a basic aspect of Maven, 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 want to use one, and Maven will build the project structure or structures for you based on the template. This is a great tool for teams wanting to build consistent artifacts or to specify specific constructs in the artifacts. Ultimately, they are 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've used them for package structures of artifacts. When I first introduced restful services for a company I was working for, we built a strategy for a reactor build for each domain web service. The reactor had an interface, a client…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.