maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EJ Ciramella <ecirame...@casenetinc.com>
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 [mailto:kama@soebes.de]
Sent: Tuesday, May 10, 2011 11:02 AM
To: users@maven.apache.org
Subject: Re: How can I have a goal depend on another goal?

Hi,

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

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

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
deployment...

Kind regards
Karl Heinz Marbaise

-----
Kind regards
Karl Heinz Marbaise
----
http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: http://maven.40175.n5.nabble.com/How-can-I-have-a-goal-depend-on-another-goal-tp4384674p4384704.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message