Before you can start coding in Maven, either to search and fix a
bug or to do any enhancements, you will probably be looking for
a starting point what code gets executed during a mvn install or
a similar call. This document will provide a walk-through of the
Maven source code. Please refer to xxx about how to checkout the
sources and build Maven yourself. Entry point: Maven's main
method When called from the command line, the main method of the
class org.apache.maven.cli.MavenCli (as in Command Line
Interface) will be called. The sequence of action is roughly: -
Parse the command line, using the embedded CLIManager class,
making use of the Commons CLI - Start the Plexus container:
embedder.start( classWorld ). - Create a Maven Execution
Request. - Have Plexus create a Maven instance. (In most cases
this will be org.apache.maven.DefaultMaven.) - Have the Maven
instance execute the execution request. ( maven.execute(Request)
). This is where the command line specific invocation ends.
Maven in action: Subjects a