maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EJ Ciramella <>
Subject RE: How can I have a goal depend on another goal?
Date Tue, 10 May 2011 19:21:44 GMT
FWIW - "deploy" and "install" are generally overused/overloaded terms.

When talking about a "mvn deploy" this implies deploying a project's artifacts to the internal
(ie: not local) repository.  "mvn install" deploys the same artifacts to the local repository.

Is this truly the desired behavior?

-----Original Message-----
From: Karl Heinz Marbaise []
Sent: Tuesday, May 10, 2011 11:02 AM
Subject: Re: How can I have a goal depend on another goal?


that sounds to me that you didn't know the Maven Life Cycle which runs

This means for you that if you call

mvn package

every phase before package will run complete incl. the package phase itself.

Or in other words if you call

mvn deploy

all phases before deploy will run and of course deploy itself as well.

Now you can bound a plugin to a particular phase to do particular
things...for example check if the container runs...
For example via cargo plugin you start different containers etc. but the
cargo plugin is more intended for integration tests instead for

Kind regards
Karl Heinz Marbaise

Kind regards
Karl Heinz Marbaise
View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

CONFIDENTIALITY NOTICE:  This e-mail and the information transmitted within including any
attachments is only for the recipient(s) to which it is intended and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other use of; or
taking of any action in reliance upon this information by persons or entities other than the
intended recipient is prohibited. If you received this in error, please send the e-mail back
by replying to the sender and permanently delete the entire message and its attachments from
all computers and network systems involved in its receipt.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message