Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Maven Console

This plugin provides an interactive environment for executing Maven goals for a project. This cuts down on the JVM and Maven start-up times allowing for lightning-fast repetitive execution of Maven.

The console simply loads the current project.xml and waits for the user to supply a goal (or set of comma-separated goals) to execute.

clean,jar:jar

You can press enter to re-run the last successful goal which is displayed in the prompt.

To change a property on the fly, assign it like so:

maven.test.skip=true

To check the current value of a property, start the command with =:

=maven.compile.source

For more information on the functionality provided by this plugin, please see the Goals document.

You can customize some features with properties.

Improving the prompt

In version 1.2 of the console plugin, tab completion and history functionality have been introduced via the use of the jline library. Check the jline homepage for documentation, in particular a list of default key bindings.