Building a custom archetype

So far in this chapter, we have discussed several applications of Maven archetypes. It's high time now to build our own custom archetype. Let's see how to develop a Maven archetype for an Apache Axis2 module/handler. Let's start with a simple Maven project:

$ mvn archetype:generate

This command will generate the following directory structure:


Before creating the archetype, first we need to build the ...

Get Mastering Apache Maven 3 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.