Running multiple phases on multimodules.

2010-03-24 Thread Compere, Lydie
Hello,

I wonder if anyone ever had this 'request'.

I have a multimodule pom and would like to run, say, phases clean and install.  
Thing is, I would like the clean phase to be run on all my modules AND THEN 
have the install phase run on all my modules.  Is that possible?

Ex.:

Module-1
Child-A
Child-B
Child-C

If, at root (Module-1), I do mvn clean install, Maven will:

clean Child-A, install Child-A
clean Child-B, install Child-B
clean Child-C, install Child-C

WHAT I WOULD LIKE MAVEN TO DO IS:

clean Child-A
clean Child-B
clean Child-C

install Child-A
install Child-B
install Child-C

Is this possible??

Thanks in advance!





TD Assurance réfère collectivement à toutes les entités et
activités Canadiennes d'assurance des particuliers au sein de
TDBFG. 
TD Insurance refers collectively to all of the Canadian personal
lines insurance entities and activities within TDBFG. 
-
AVIS DE CONFIDENTIALITE. 

Ce courriel, ainsi que tout renseignement ci-inclus, destiné
uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
Si vous n'êtes pas le destinataire prévu ou un agent responsable de
la livraison de ce courriel, tout examen, divulgation, copie,
impression, reproduction, distribution ou autre utilisation de
toute partie de ce courriel est strictement interdit de même que
toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
ce message par erreur ou sans autorisation, veuillez en aviser
immédiatement l'expéditeur par retour de courriel ou par un autre
moyen et supprimez immédiatement et entièrement cette communication
de tout système électronique. 

NOTICE OF CONFIDENTIALITY. 

This communication, including any information transmitted with it,
is intended only for the use of the addressee(s) and is
confidential. If you are not an intended recipient or responsible
for delivering the message to an intended recipient, any review,
disclosure, conversion to hard copy, dissemination, reproduction or
other use of any part of this communication is strictly prohibited,
as is the taking or omitting of any action in reliance upon this
communication. If you received this communication in error or
without authorization please notify us immediately by return e-mail
or otherwise and permanently delete the entire communication from
any computer, disk drive, or other storage medium.


Re: Running multiple phases on multimodules.

2010-03-24 Thread Jesse Farinacci
Hi Lydie,

On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
lydie.comp...@tdassurance.com wrote:

 WHAT I WOULD LIKE MAVEN TO DO IS:

        clean Child-A
        clean Child-B
        clean Child-C

        install Child-A
        install Child-B
        install Child-C

 Is this possible??


$ mvn clean ; mvn install ; echo profit!

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Kathryn Huxtable
Does it not work to simply do:

$ mvn clean install

?

-K

On Mar 24, 2010, at 4:22 PM, Jesse Farinacci wrote:

 Hi Lydie,
 
 On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
 lydie.comp...@tdassurance.com wrote:
 
 WHAT I WOULD LIKE MAVEN TO DO IS:
 
clean Child-A
clean Child-B
clean Child-C
 
install Child-A
install Child-B
install Child-C
 
 Is this possible??
 
 
 $ mvn clean ; mvn install ; echo profit!
 
 -Jesse
 
 -- 
 There are 10 types of people in this world, those
 that can read binary and those that can not.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Justin Edelson
That runs clean and install on each project before proceeding to the
next project. It sounds like the OP wants to clean all projects before
installing the first one. Although why is beyond me.

Justin

On Mar 24, 2010, at 2:36 PM, Kathryn Huxtable kath...@kathrynhuxtable.org
  wrote:

 Does it not work to simply do:

 $ mvn clean install

 ?

 -K

 On Mar 24, 2010, at 4:22 PM, Jesse Farinacci wrote:

 Hi Lydie,

 On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
 lydie.comp...@tdassurance.com wrote:

 WHAT I WOULD LIKE MAVEN TO DO IS:

   clean Child-A
   clean Child-B
   clean Child-C

   install Child-A
   install Child-B
   install Child-C

 Is this possible??


 $ mvn clean ; mvn install ; echo profit!

 -Jesse

 --
 There are 10 types of people in this world, those
 that can read binary and those that can not.

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



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


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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Kathryn Huxtable
Ah. Yes, I see that. Thanks!

I've never really had the need to use a parent project, so I wasn't sure.

-K

On Mar 24, 2010, at 4:41 PM, Justin Edelson wrote:

 That runs clean and install on each project before proceeding to the
 next project. It sounds like the OP wants to clean all projects before
 installing the first one. Although why is beyond me.
 
 Justin
 
 On Mar 24, 2010, at 2:36 PM, Kathryn Huxtable kath...@kathrynhuxtable.org
 wrote:
 
 Does it not work to simply do:
 
 $ mvn clean install
 
 ?
 
 -K
 
 On Mar 24, 2010, at 4:22 PM, Jesse Farinacci wrote:
 
 Hi Lydie,
 
 On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
 lydie.comp...@tdassurance.com wrote:
 
 WHAT I WOULD LIKE MAVEN TO DO IS:
 
  clean Child-A
  clean Child-B
  clean Child-C
 
  install Child-A
  install Child-B
  install Child-C
 
 Is this possible??
 
 
 $ mvn clean ; mvn install ; echo profit!
 
 -Jesse
 
 --
 There are 10 types of people in this world, those
 that can read binary and those that can not.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


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



RE: Running multiple phases on multimodules.

2010-03-24 Thread Compere, Lydie
Hello and thank you for your quick reply Jesse.

Please pardon my ignorance but I'm not sure I understand.

Would it be possible for you to clarify??

Thanks again!
_


From Jesse Farinacci jie...@gmail.com Subject Re: Running multiple phases on 
multimodules. Date Wed, 24 Mar 2010 21:22:49 GMT
Hi Lydie,

On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
lydie.comp...@tdassurance.com wrote:

 WHAT I WOULD LIKE MAVEN TO DO IS:

 ? ? ? ?clean Child-A
 ? ? ? ?clean Child-B
 ? ? ? ?clean Child-C

 ? ? ? ?install Child-A
 ? ? ? ?install Child-B
 ? ? ? ?install Child-C

 Is this possible??


$ mvn clean ; mvn install ; echo profit!

-Jesse

--
There are 10 types of people in this world, those
that can read binary and those that can not.

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

_

Hello,

I wonder if anyone ever had this 'request'.

I have a multimodule pom and would like to run, say, phases clean and install.  
Thing is, I would like the clean phase to be run on all my modules AND THEN 
have the install phase run on all my modules.  Is that possible?

Ex.:

Module-1
Child-A
Child-B
Child-C

If, at root (Module-1), I do mvn clean install, Maven will:

clean Child-A, install Child-A
clean Child-B, install Child-B
clean Child-C, install Child-C

WHAT I WOULD LIKE MAVEN TO DO IS:

clean Child-A
clean Child-B
clean Child-C

install Child-A
install Child-B
install Child-C

Is this possible??





TD Assurance réfère collectivement à toutes les entités et
activités Canadiennes d'assurance des particuliers au sein de
TDBFG. 
TD Insurance refers collectively to all of the Canadian personal
lines insurance entities and activities within TDBFG. 
-
AVIS DE CONFIDENTIALITE. 

Ce courriel, ainsi que tout renseignement ci-inclus, destiné
uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
Si vous n'êtes pas le destinataire prévu ou un agent responsable de
la livraison de ce courriel, tout examen, divulgation, copie,
impression, reproduction, distribution ou autre utilisation de
toute partie de ce courriel est strictement interdit de même que
toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
ce message par erreur ou sans autorisation, veuillez en aviser
immédiatement l'expéditeur par retour de courriel ou par un autre
moyen et supprimez immédiatement et entièrement cette communication
de tout système électronique. 

NOTICE OF CONFIDENTIALITY. 

This communication, including any information transmitted with it,
is intended only for the use of the addressee(s) and is
confidential. If you are not an intended recipient or responsible
for delivering the message to an intended recipient, any review,
disclosure, conversion to hard copy, dissemination, reproduction or
other use of any part of this communication is strictly prohibited,
as is the taking or omitting of any action in reliance upon this
communication. If you received this communication in error or
without authorization please notify us immediately by return e-mail
or otherwise and permanently delete the entire communication from
any computer, disk drive, or other storage medium.


Re: Running multiple phases on multimodules.

2010-03-24 Thread Kathryn Huxtable
I believe he was using some current American television slang from South 
Park. (The profit reference.)

The basic idea is to run the clean goal as a maven command, and when it 
completes, run the install goal in a separate maven command.

-K

On Mar 24, 2010, at 4:48 PM, Compere, Lydie wrote:

 Hello and thank you for your quick reply Jesse.
 
 Please pardon my ignorance but I'm not sure I understand.
 
 Would it be possible for you to clarify??
 
 Thanks again!
 _
 
 
 From Jesse Farinacci jie...@gmail.com Subject Re: Running multiple phases 
 on multimodules. Date Wed, 24 Mar 2010 21:22:49 GMT
 Hi Lydie,
 
 On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
 lydie.comp...@tdassurance.com wrote:
 
 WHAT I WOULD LIKE MAVEN TO DO IS:
 
 ? ? ? ?clean Child-A
 ? ? ? ?clean Child-B
 ? ? ? ?clean Child-C
 
 ? ? ? ?install Child-A
 ? ? ? ?install Child-B
 ? ? ? ?install Child-C
 
 Is this possible??
 
 
 $ mvn clean ; mvn install ; echo profit!
 
 -Jesse
 
 --
 There are 10 types of people in this world, those
 that can read binary and those that can not.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 _
 
 Hello,
 
 I wonder if anyone ever had this 'request'.
 
 I have a multimodule pom and would like to run, say, phases clean and 
 install.  Thing is, I would like the clean phase to be run on all my modules 
 AND THEN have the install phase run on all my modules.  Is that possible?
 
 Ex.:
 
 Module-1
Child-A
Child-B
Child-C
 
 If, at root (Module-1), I do mvn clean install, Maven will:
 
clean Child-A, install Child-A
clean Child-B, install Child-B
clean Child-C, install Child-C
 
 WHAT I WOULD LIKE MAVEN TO DO IS:
 
clean Child-A
clean Child-B
clean Child-C
 
install Child-A
install Child-B
install Child-C
 
 Is this possible??
 
 
 
 
 
 TD Assurance réfère collectivement à toutes les entités et
 activités Canadiennes d'assurance des particuliers au sein de
 TDBFG. 
 TD Insurance refers collectively to all of the Canadian personal
 lines insurance entities and activities within TDBFG. 
 -
 AVIS DE CONFIDENTIALITE. 
 
 Ce courriel, ainsi que tout renseignement ci-inclus, destiné
 uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
 Si vous n'êtes pas le destinataire prévu ou un agent responsable de
 la livraison de ce courriel, tout examen, divulgation, copie,
 impression, reproduction, distribution ou autre utilisation de
 toute partie de ce courriel est strictement interdit de même que
 toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
 ce message par erreur ou sans autorisation, veuillez en aviser
 immédiatement l'expéditeur par retour de courriel ou par un autre
 moyen et supprimez immédiatement et entièrement cette communication
 de tout système électronique. 
 
 NOTICE OF CONFIDENTIALITY. 
 
 This communication, including any information transmitted with it,
 is intended only for the use of the addressee(s) and is
 confidential. If you are not an intended recipient or responsible
 for delivering the message to an intended recipient, any review,
 disclosure, conversion to hard copy, dissemination, reproduction or
 other use of any part of this communication is strictly prohibited,
 as is the taking or omitting of any action in reliance upon this
 communication. If you received this communication in error or
 without authorization please notify us immediately by return e-mail
 or otherwise and permanently delete the entire communication from
 any computer, disk drive, or other storage medium.


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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Wayne Fay
 Please pardon my ignorance but I'm not sure I understand.
 Would it be possible for you to clarify??

 $ mvn clean ; mvn install ; echo profit!

Did you try Jesse's suggestion on the command line? It does exactly
what you requested.

Alternatively maybe try the reactor plugin's make mojo, though I
honestly have no idea if it will do what you want since I don't use it
generally.
http://maven.apache.org/plugins/maven-reactor-plugin/

Can you please tell us WHY you want to do this? What is it about the
usual mvn clean install process that is unacceptable, or is this
merely a preference for you?

Wayne

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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Wendy Smoak
On Wed, Mar 24, 2010 at 5:52 PM, Wayne Fay wayne...@gmail.com wrote:

 $ mvn clean ; mvn install ; echo profit!

 Did you try Jesse's suggestion on the command line? It does exactly
 what you requested.

... unless he's on Windows, where there's no way to do it on one line
afaik.  Happy to be proven wrong though!

-- 
Wendy

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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Kathryn Huxtable
That was my assumption, along with a French-sounding name making the profit 
reference potentially meaningless.

-K, who develops on a Mac. I do test on Windows...

On Mar 24, 2010, at 5:04 PM, Wendy Smoak wrote:

 On Wed, Mar 24, 2010 at 5:52 PM, Wayne Fay wayne...@gmail.com wrote:
 
 $ mvn clean ; mvn install ; echo profit!
 
 Did you try Jesse's suggestion on the command line? It does exactly
 what you requested.
 
 ... unless he's on Windows, where there's no way to do it on one line
 afaik.  Happy to be proven wrong though!
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Manfred Moser
You can always stick it into a .bat file and call that..

 That was my assumption, along with a French-sounding name making the
 profit reference potentially meaningless.

 -K, who develops on a Mac. I do test on Windows...

 On Mar 24, 2010, at 5:04 PM, Wendy Smoak wrote:

 On Wed, Mar 24, 2010 at 5:52 PM, Wayne Fay wayne...@gmail.com wrote:

 $ mvn clean ; mvn install ; echo profit!

 Did you try Jesse's suggestion on the command line? It does exactly
 what you requested.

 ... unless he's on Windows, where there's no way to do it on one line
 afaik.  Happy to be proven wrong though!

 --
 Wendy

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


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



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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Brian Dilley
#!/bin/bash

for i in $@
do
mvn $i
if [ $? != 0 ];
then
exit $?
fi
done

put than in mvnn.sh and do:

mvn.sh clean install

:)

On Wed, Mar 24, 2010 at 3:14 PM, Manfred Moser manf...@mosabuam.com wrote:

 You can always stick it into a .bat file and call that..

  That was my assumption, along with a French-sounding name making the
  profit reference potentially meaningless.
 
  -K, who develops on a Mac. I do test on Windows...
 
  On Mar 24, 2010, at 5:04 PM, Wendy Smoak wrote:
 
  On Wed, Mar 24, 2010 at 5:52 PM, Wayne Fay wayne...@gmail.com wrote:
 
  $ mvn clean ; mvn install ; echo profit!
 
  Did you try Jesse's suggestion on the command line? It does exactly
  what you requested.
 
  ... unless he's on Windows, where there's no way to do it on one line
  afaik.  Happy to be proven wrong though!
 
  --
  Wendy
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 


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




Re: Running multiple phases on multimodules.

2010-03-24 Thread Brian Dilley
oops, mvnn.sh clean install

On Wed, Mar 24, 2010 at 3:18 PM, Brian Dilley bdil...@estalea.com wrote:

 #!/bin/bash

 for i in $@
 do
 mvn $i
 if [ $? != 0 ];
 then
 exit $?
 fi
 done

 put than in mvnn.sh and do:

 mvn.sh clean install

 :)


 On Wed, Mar 24, 2010 at 3:14 PM, Manfred Moser manf...@mosabuam.comwrote:

 You can always stick it into a .bat file and call that..

  That was my assumption, along with a French-sounding name making the
  profit reference potentially meaningless.
 
  -K, who develops on a Mac. I do test on Windows...
 
  On Mar 24, 2010, at 5:04 PM, Wendy Smoak wrote:
 
  On Wed, Mar 24, 2010 at 5:52 PM, Wayne Fay wayne...@gmail.com wrote:
 
  $ mvn clean ; mvn install ; echo profit!
 
  Did you try Jesse's suggestion on the command line? It does exactly
  what you requested.
 
  ... unless he's on Windows, where there's no way to do it on one line
  afaik.  Happy to be proven wrong though!
 
  --
  Wendy
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 


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





RE: Running multiple phases on multimodules.

2010-03-24 Thread Gorham-Engard, Frank
On Windoze:
 mvn clean  mvn install  echo profit! (sic)

!-- Frank Gorham-Engard →
It is a misnomer to label any practice 'a best practice'; 
  a practice is only best in the specific context in which it performs well.

-Original Message-
From: Wendy Smoak [mailto:wsm...@gmail.com] 
Sent: Wednesday, March 24, 2010 6:05 PM
To: Maven Users List
Subject: Re: Running multiple phases on multimodules.

On Wed, Mar 24, 2010 at 5:52 PM, Wayne Fay wayne...@gmail.com wrote:

 $ mvn clean ; mvn install ; echo profit!

 Did you try Jesse's suggestion on the command line? It does exactly
 what you requested.

... unless he's on Windows, where there's no way to do it on one line
afaik.  Happy to be proven wrong though!

-- 
Wendy

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



RE: Running multiple phases on multimodules.

2010-03-24 Thread Compere, Lydie
Thank you for your replies.

I am on a Windows machine.

mvn clean install was an example but  I actually have a case where I need to 
have a list of phases run like

[maven-phase-1] child-A
[maven-phase-1] child-B
[maven-phase-1] child-C

[maven-phase-2] child-A
[maven-phase-2] child-B
[maven-phase-2] child-C

I take this is possible on unix/linux/.. Machines but not on Windows Is 
that correct?






TD Assurance réfère collectivement à toutes les entités et
activités Canadiennes d'assurance des particuliers au sein de
TDBFG. 
TD Insurance refers collectively to all of the Canadian personal
lines insurance entities and activities within TDBFG. 
-
AVIS DE CONFIDENTIALITE. 

Ce courriel, ainsi que tout renseignement ci-inclus, destiné
uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
Si vous n'êtes pas le destinataire prévu ou un agent responsable de
la livraison de ce courriel, tout examen, divulgation, copie,
impression, reproduction, distribution ou autre utilisation de
toute partie de ce courriel est strictement interdit de même que
toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
ce message par erreur ou sans autorisation, veuillez en aviser
immédiatement l'expéditeur par retour de courriel ou par un autre
moyen et supprimez immédiatement et entièrement cette communication
de tout système électronique. 

NOTICE OF CONFIDENTIALITY. 

This communication, including any information transmitted with it,
is intended only for the use of the addressee(s) and is
confidential. If you are not an intended recipient or responsible
for delivering the message to an intended recipient, any review,
disclosure, conversion to hard copy, dissemination, reproduction or
other use of any part of this communication is strictly prohibited,
as is the taking or omitting of any action in reliance upon this
communication. If you received this communication in error or
without authorization please notify us immediately by return e-mail
or otherwise and permanently delete the entire communication from
any computer, disk drive, or other storage medium.


Re: Running multiple phases on multimodules.

2010-03-24 Thread Justin Edelson
It's still unclear why the traditional way of invoking Maven (i.e. allowing
each project to run through the requested lifecycle phases/goals) is not
working for you. Perhaps we can find a better solution to that problem
rather than working around it in this way.

The commands/scripts provided in this thread will only work on a *nix
environment. You can probably do something similar with PowerShell, but
again, I think it'd be better to figure out why mvn clean install doesn't
work.

Justin

On Wed, Mar 24, 2010 at 6:52 PM, Compere, Lydie 
lydie.comp...@tdassurance.com wrote:

 Thank you for your replies.

 I am on a Windows machine.

 mvn clean install was an example but  I actually have a case where I need
 to have a list of phases run like

[maven-phase-1] child-A
[maven-phase-1] child-B
[maven-phase-1] child-C

[maven-phase-2] child-A
[maven-phase-2] child-B
[maven-phase-2] child-C

 I take this is possible on unix/linux/.. Machines but not on Windows Is
 that correct?






 TD Assurance réfère collectivement à toutes les entités et
 activités Canadiennes d'assurance des particuliers au sein de
 TDBFG.
 TD Insurance refers collectively to all of the Canadian personal
 lines insurance entities and activities within TDBFG.
 -
 AVIS DE CONFIDENTIALITE.

 Ce courriel, ainsi que tout renseignement ci-inclus, destiné
 uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
 Si vous n'êtes pas le destinataire prévu ou un agent responsable de
 la livraison de ce courriel, tout examen, divulgation, copie,
 impression, reproduction, distribution ou autre utilisation de
 toute partie de ce courriel est strictement interdit de même que
 toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
 ce message par erreur ou sans autorisation, veuillez en aviser
 immédiatement l'expéditeur par retour de courriel ou par un autre
 moyen et supprimez immédiatement et entièrement cette communication
 de tout système électronique.

 NOTICE OF CONFIDENTIALITY.

 This communication, including any information transmitted with it,
 is intended only for the use of the addressee(s) and is
 confidential. If you are not an intended recipient or responsible
 for delivering the message to an intended recipient, any review,
 disclosure, conversion to hard copy, dissemination, reproduction or
 other use of any part of this communication is strictly prohibited,
 as is the taking or omitting of any action in reliance upon this
 communication. If you received this communication in error or
 without authorization please notify us immediately by return e-mail
 or otherwise and permanently delete the entire communication from
 any computer, disk drive, or other storage medium.



Re: Running multiple phases on multimodules.

2010-03-24 Thread Wayne Fay
 mvn clean install was an example but  I actually have
 a case where I need to have a list of phases run like

Again... you haven't told us WHY you need to do this. Until you do
that, we'll just keep throwing out slightly ridiculous (albeit
working) solutions to your problem.

What is it about Maven's normal way of processing multimodules that is
not acceptable to you?

Wayne

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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Justin Edelson
It's not really current, but interested parties should see
http://en.wikipedia.org/wiki/Underpants_gnome

On Wed, Mar 24, 2010 at 5:52 PM, Kathryn Huxtable 
kath...@kathrynhuxtable.org wrote:

 I believe he was using some current American television slang from South
 Park. (The profit reference.)

 The basic idea is to run the clean goal as a maven command, and when it
 completes, run the install goal in a separate maven command.

 -K

 On Mar 24, 2010, at 4:48 PM, Compere, Lydie wrote:

  Hello and thank you for your quick reply Jesse.
 
  Please pardon my ignorance but I'm not sure I understand.
 
  Would it be possible for you to clarify??
 
  Thanks again!
  _
 
 
  From Jesse Farinacci jie...@gmail.com Subject Re: Running multiple
 phases on multimodules. Date Wed, 24 Mar 2010 21:22:49 GMT
  Hi Lydie,
 
  On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
  lydie.comp...@tdassurance.com wrote:
 
  WHAT I WOULD LIKE MAVEN TO DO IS:
 
  ? ? ? ?clean Child-A
  ? ? ? ?clean Child-B
  ? ? ? ?clean Child-C
 
  ? ? ? ?install Child-A
  ? ? ? ?install Child-B
  ? ? ? ?install Child-C
 
  Is this possible??
 
 
  $ mvn clean ; mvn install ; echo profit!
 
  -Jesse
 
  --
  There are 10 types of people in this world, those
  that can read binary and those that can not.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
  _
 
  Hello,
 
  I wonder if anyone ever had this 'request'.
 
  I have a multimodule pom and would like to run, say, phases clean and
 install.  Thing is, I would like the clean phase to be run on all my modules
 AND THEN have the install phase run on all my modules.  Is that possible?
 
  Ex.:
 
  Module-1
 Child-A
 Child-B
 Child-C
 
  If, at root (Module-1), I do mvn clean install, Maven will:
 
 clean Child-A, install Child-A
 clean Child-B, install Child-B
 clean Child-C, install Child-C
 
  WHAT I WOULD LIKE MAVEN TO DO IS:
 
 clean Child-A
 clean Child-B
 clean Child-C
 
 install Child-A
 install Child-B
 install Child-C
 
  Is this possible??
 
 
 
 
 
  TD Assurance réfère collectivement à toutes les entités et
  activités Canadiennes d'assurance des particuliers au sein de
  TDBFG.
  TD Insurance refers collectively to all of the Canadian personal
  lines insurance entities and activities within TDBFG.
  -
  AVIS DE CONFIDENTIALITE.
 
  Ce courriel, ainsi que tout renseignement ci-inclus, destiné
  uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
  Si vous n'êtes pas le destinataire prévu ou un agent responsable de
  la livraison de ce courriel, tout examen, divulgation, copie,
  impression, reproduction, distribution ou autre utilisation de
  toute partie de ce courriel est strictement interdit de même que
  toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
  ce message par erreur ou sans autorisation, veuillez en aviser
  immédiatement l'expéditeur par retour de courriel ou par un autre
  moyen et supprimez immédiatement et entièrement cette communication
  de tout système électronique.
 
  NOTICE OF CONFIDENTIALITY.
 
  This communication, including any information transmitted with it,
  is intended only for the use of the addressee(s) and is
  confidential. If you are not an intended recipient or responsible
  for delivering the message to an intended recipient, any review,
  disclosure, conversion to hard copy, dissemination, reproduction or
  other use of any part of this communication is strictly prohibited,
  as is the taking or omitting of any action in reliance upon this
  communication. If you received this communication in error or
  without authorization please notify us immediately by return e-mail
  or otherwise and permanently delete the entire communication from
  any computer, disk drive, or other storage medium.


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




Re: Running multiple phases on multimodules.

2010-03-24 Thread Stephen Connolly

mvn clean  mvn install  echo profit

works on xp for me with regular cmd

Sent from my [rhymes with tryPod] ;-)

On 24 Mar 2010, at 22:04, Wendy Smoak wsm...@gmail.com wrote:


On Wed, Mar 24, 2010 at 5:52 PM, Wayne Fay wayne...@gmail.com wrote:


$ mvn clean ; mvn install ; echo profit!


Did you try Jesse's suggestion on the command line? It does exactly
what you requested.


... unless he's on Windows, where there's no way to do it on one line
afaik.  Happy to be proven wrong though!

--
Wendy

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



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



Re: Running multiple phases on multimodules.

2010-03-24 Thread Kathryn Huxtable
Well, no, but there have been recent allusions to it in the left-wing political 
blogs I read. -K

On Mar 24, 2010, at 6:00 PM, Justin Edelson wrote:

 It's not really current, but interested parties should see
 http://en.wikipedia.org/wiki/Underpants_gnome
 
 On Wed, Mar 24, 2010 at 5:52 PM, Kathryn Huxtable 
 kath...@kathrynhuxtable.org wrote:
 
 I believe he was using some current American television slang from South
 Park. (The profit reference.)
 
 The basic idea is to run the clean goal as a maven command, and when it
 completes, run the install goal in a separate maven command.
 
 -K
 
 On Mar 24, 2010, at 4:48 PM, Compere, Lydie wrote:
 
 Hello and thank you for your quick reply Jesse.
 
 Please pardon my ignorance but I'm not sure I understand.
 
 Would it be possible for you to clarify??
 
 Thanks again!
 _
 
 
 From Jesse Farinacci jie...@gmail.com Subject Re: Running multiple
 phases on multimodules. Date Wed, 24 Mar 2010 21:22:49 GMT
 Hi Lydie,
 
 On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie
 lydie.comp...@tdassurance.com wrote:
 
 WHAT I WOULD LIKE MAVEN TO DO IS:
 
 ? ? ? ?clean Child-A
 ? ? ? ?clean Child-B
 ? ? ? ?clean Child-C
 
 ? ? ? ?install Child-A
 ? ? ? ?install Child-B
 ? ? ? ?install Child-C
 
 Is this possible??
 
 
 $ mvn clean ; mvn install ; echo profit!
 
 -Jesse
 
 --
 There are 10 types of people in this world, those
 that can read binary and those that can not.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 _
 
 Hello,
 
 I wonder if anyone ever had this 'request'.
 
 I have a multimodule pom and would like to run, say, phases clean and
 install.  Thing is, I would like the clean phase to be run on all my modules
 AND THEN have the install phase run on all my modules.  Is that possible?
 
 Ex.:
 
 Module-1
   Child-A
   Child-B
   Child-C
 
 If, at root (Module-1), I do mvn clean install, Maven will:
 
   clean Child-A, install Child-A
   clean Child-B, install Child-B
   clean Child-C, install Child-C
 
 WHAT I WOULD LIKE MAVEN TO DO IS:
 
   clean Child-A
   clean Child-B
   clean Child-C
 
   install Child-A
   install Child-B
   install Child-C
 
 Is this possible??
 
 
 
 
 
 TD Assurance réfère collectivement à toutes les entités et
 activités Canadiennes d'assurance des particuliers au sein de
 TDBFG.
 TD Insurance refers collectively to all of the Canadian personal
 lines insurance entities and activities within TDBFG.
 -
 AVIS DE CONFIDENTIALITE.
 
 Ce courriel, ainsi que tout renseignement ci-inclus, destiné
 uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
 Si vous n'êtes pas le destinataire prévu ou un agent responsable de
 la livraison de ce courriel, tout examen, divulgation, copie,
 impression, reproduction, distribution ou autre utilisation de
 toute partie de ce courriel est strictement interdit de même que
 toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
 ce message par erreur ou sans autorisation, veuillez en aviser
 immédiatement l'expéditeur par retour de courriel ou par un autre
 moyen et supprimez immédiatement et entièrement cette communication
 de tout système électronique.
 
 NOTICE OF CONFIDENTIALITY.
 
 This communication, including any information transmitted with it,
 is intended only for the use of the addressee(s) and is
 confidential. If you are not an intended recipient or responsible
 for delivering the message to an intended recipient, any review,
 disclosure, conversion to hard copy, dissemination, reproduction or
 other use of any part of this communication is strictly prohibited,
 as is the taking or omitting of any action in reliance upon this
 communication. If you received this communication in error or
 without authorization please notify us immediately by return e-mail
 or otherwise and permanently delete the entire communication from
 any computer, disk drive, or other storage medium.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 


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



Running multiple phases on multimodules.

2010-03-24 Thread Compere, Lydie
Hello,

I wonder if anyone ever had this 'request'.

I have a multimodule pom and would like to run, say, phases clean and install.  
Thing is, I would like the clean phase to be run on all my modules AND THEN 
have the install phase run on all my modules.  Is that possible?

Ex.:

Module-1
Child-A
Child-B
Child-C

If, at root (Module-1), I do mvn clean install, Maven will:

clean Child-A, install Child-A
clean Child-B, install Child-B
clean Child-C, install Child-C

WHAT I WOULD LIKE MAVEN TO DO IS:

clean Child-A
clean Child-B
clean Child-C

install Child-A
install Child-B
install Child-C

Is this possible??





TD Assurance réfère collectivement à toutes les entités et
activités Canadiennes d'assurance des particuliers au sein de
TDBFG. 
TD Insurance refers collectively to all of the Canadian personal
lines insurance entities and activities within TDBFG. 
-
AVIS DE CONFIDENTIALITE. 

Ce courriel, ainsi que tout renseignement ci-inclus, destiné
uniquement au(x) destinataire(s) susmentionné(s), est confidentiel.
Si vous n'êtes pas le destinataire prévu ou un agent responsable de
la livraison de ce courriel, tout examen, divulgation, copie,
impression, reproduction, distribution ou autre utilisation de
toute partie de ce courriel est strictement interdit de même que
toute action ou manquement à l'égard de celui-ci. Si vous avez reçu
ce message par erreur ou sans autorisation, veuillez en aviser
immédiatement l'expéditeur par retour de courriel ou par un autre
moyen et supprimez immédiatement et entièrement cette communication
de tout système électronique. 

NOTICE OF CONFIDENTIALITY. 

This communication, including any information transmitted with it,
is intended only for the use of the addressee(s) and is
confidential. If you are not an intended recipient or responsible
for delivering the message to an intended recipient, any review,
disclosure, conversion to hard copy, dissemination, reproduction or
other use of any part of this communication is strictly prohibited,
as is the taking or omitting of any action in reliance upon this
communication. If you received this communication in error or
without authorization please notify us immediately by return e-mail
or otherwise and permanently delete the entire communication from
any computer, disk drive, or other storage medium.