Skip to main content

Custom Maven Plugin: Override default build lifecycle

I explained in previous article Example how to create custom Maven Plugin which overrides site lifecycle.

I have created another example to demonstrate how to override default Maven build lifecycle. Default build lifecycle is used to construct your software project, for example, it is executed when you run mvn install in jar type project.

You can find source code example at


I've also created an archetype so you can easily create and play with the example.

Create example project just by running following command:

mvn archetype:generate -DarchetypeGroupId=com.github.carlosvin.archetype -DartifactId=lifecycle-maven-plugin-archetype -DarchetypeVersion=0.6


Comments powered by Disqus