Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Maven User
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>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.</p> <p>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.</p> <h1>Entry point: Maven's main method</h1> <p>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.</p> <p>The sequence of action is roughly:</p> <ul> <li>Parse the command line, using the embedded CLIManager class, making use of the <a href="http://commons.apache.org/cli/">Commons CLI</a></li> <li>Start the Plexus container: embedder.start( classWorld ).</li> <li>Create a Maven Execution Request.</li> <li>Have Plexus create a Maven instance. (In most cases this will be org.apache.maven.DefaultMaven.)</li> <li>Have the Maven instance execute the execution request. ( maven.execute(Request) ).</li> </ul> <p>This is where the command line specific invocation ends.</p> <h1>Maven in action: Subjects and Objects</h1> <p>The DefaultMaven instantiates a bunch of objects which interact during the execution of a request.</p> <p>These are:</p> <ul> <li>The ReactorManager (org.apache.maven.execution.ReactorManager)</li> <li>A MavenSession (org.apache.maven.execution.MavenSession)</li> </ul> <p>The session is executed by the LifecycleExecutor (org.apache.maven.lifecycle.LifecycleExecutor).</p> <h2>The ReactorManager</h2> <p>Many users of Maven associate the reactor with multiple project setups, maybe because in a multi-module project, you will see a reactor build order as part of the Maven output. But the ReactorManager is not only used in case of multi-module projects, but also for single projects. </p> <h2>The MavenSession</h2> <p><br class="atl-forced-newline" /></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced