CHAPTER 6

image

Maven Archetypes

Up to this point, you have created a Maven project manually, generating the folders and creating the pom.xml files from scratch. This can become tedious, especially when you frequently have to create projects. To address this issue, Maven provides archetypes. Maven archetypes are project templates that allow users to generate new projects easily.

Maven archetypes also provide a great platform to share best practices and enforce consistency beyond Maven’s standard directory structure. For example, an enterprise can create an archetype with the company’s branded cascading style sheet (CSS), approved JavaScript libraries, ...

Get Introducing Maven now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.