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' 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.
- Try to execute that request.