Configuring Default Goal In Maven 3

The default goal doesn't have to be repeatedly specified from the CLI and can be configured directly in the pom.xml:

	<defaultGoal>clean install</defaultGoal>

After the extension, you can perform the build with a simple: mvn

See you at Java EE Workshops at MUC Airport!

NEW: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: and newsletter:

A book about rethinking Java EE Patterns


Now if only we could have custom keyboard shortcuts bound to Maven goals in Netbeans... (see URL) :-)

Posted by ReinoutS on April 09, 2013 at 07:51 PM CEST #

... or define aliases like

alias mci="mvn clean install -Pjetty"
alias mee="mvn eclipse:eclipse -Pjetty"

Posted by Daniel on April 11, 2013 at 11:47 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments