Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Maven Archetypes

The word archetype has roots in Greek literature. It's derived from two Greek words, archein and typos. The word archein means original or old, while typos means patterns. Therefore, the word archetype itself means original patterns. The famous psychologist, Carl Gustav Jung introduced the archetype concept in psychology. Jung, argued that there are twelve different archetypes that represent human motivation, and he further divided them into three categories: the ego, the soul, and the self. The innocent, regular guy, hero, and caregiver fall under the ego type. The explorer, rebel, lover, and creator fall under the soul type. The self type includes jester, sage, magician, and ruler. The concept behind Maven archetypes does not deviate a lot from what Jung explained in psychology. The following figure shows the relationship between a Maven project, a project archetype and projects generated from an archetype:

When we create a Java project, we need to structure...