release:perform ignores commandline parameters even with -Darguments

2010-05-12 Thread Compere, Lydie
Hello,

I seem to be having a problem with the release:perform plugin.

I need to send a parameter at the commandline such as -Dmy.parameter=my.value.

When I do so with every other phase, it is taken into account and works fine 
(even in the release:prepare phase where I use mvn release:prepare 
-Dmy.parameter=my.value -Darguments=-Dmy.parameter=my.value).

When I try with mvn release:perform -Dmy.parameter=my.value 
-Darguments=-Dmy.parameter=my.value, it does not work.  The release:perform 
acts as if the parameter was never sent.

I've searched the web for such a problem but haven't been able to find an 
answer.

Can anybody help please?

Using Maven 2.2.1, using maven-release-plugin version 2.0

Thanks!

Be the change that you want to see in the world- Mohandas Karamchand Gandhi







RE: release:perform ignores commandline parameters even with -Darguments

2010-05-12 Thread Compere, Lydie
Thank you for your help and sorry about the ultra newbie mistakes.

In my case though, the value I need to receive at the commandline is never the 
same...

I'll try release:perform -X to get more info and troubleshoot from there. Thx


-Original Message-
From: Justin Edelson [mailto:justinedel...@gmail.com] 
Sent: Wednesday, May 12, 2010 1:53 PM
To: Maven Users List
Subject: Re: release:perform ignores commandline parameters even with 
-Darguments

First off, release:prepare isn't a phase, it's a goal.

Secondly, my guess is that you're misdiagnosing the problem. Running 
release:perform with -X would confirm this. Instead, what I think is happening 
is that your command line properties aren't being passed to the forked Maven 
instance. Take a look at 
http://maven.apache.org/plugins/maven-release-plugin/examples/perform-release.html.

There isn't, AFAIK, a way to pass through command-line properties from 
release:perform to the forked instance. Instead, what you should do is create a 
profile and set the properties you want set during a release and then include 
the profile name in the releaseProfiles property of the release plugin.

HTH,
Justin



On 5/12/10 10:48 AM, Compere, Lydie wrote:
 Hello,
 
 I seem to be having a problem with the release:perform plugin.
 
 I need to send a parameter at the commandline such as -Dmy.parameter=my.value.
 
 When I do so with every other phase, it is taken into account and works fine 
 (even in the release:prepare phase where I use mvn release:prepare 
 -Dmy.parameter=my.value -Darguments=-Dmy.parameter=my.value).
 
 When I try with mvn release:perform -Dmy.parameter=my.value 
 -Darguments=-Dmy.parameter=my.value, it does not work.  The release:perform 
 acts as if the parameter was never sent.
 
 I've searched the web for such a problem but haven't been able to find an 
 answer.
 
 Can anybody help please?
 
 Using Maven 2.2.1, using maven-release-plugin version 2.0
 
 Thanks!
 
 Be the change that you want to see in the world- Mohandas Karamchand 
 Gandhi
 
 
 
 
 
 


-
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??

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


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.