Thanks! The problem is indeed with maven-surefire-plugin (2.2), and
goes away when I revert to 2.1.2.
Josh
On 6/28/06, Olivier Lamy <[EMAIL PROTECTED]> wrote:
I think I have asked it recenlty.
Try with surefire plugin in version 2.1.3
Or with last release version add in plugin configuration
<configuration>
<systemProperties>
<property>
<name>my.prop</name>
<value>${my_prop_value}</value>
</property>
</systemProperties>
</configuration>
In the cli -Dmy_prop_value=foo
Note if you don't set the props value in the cli or your setting :
System.getProperty("my_prop_value") -> ${my_prop_value}
It's due to an issue (I don't remember which one)
--
Olivier
-----Message d'origine-----
De : Wendy Smoak [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 28 juin 2006 20:34
À : Maven Users List
Objet : Re: [m2] properties not available to unit tests
On 6/28/06, Josh <[EMAIL PROTECTED]> wrote:
> I've run into a strange problem with a fresh installation of m2. Some
> of our unit tests require machine-specific system properties which we
> usually supply at the command-line, e.g.
> mvn install -Dmy.prop=value
> I recently emptied the local repository on one of the (AMD64) machines
> (running FC4), installed Maven 2.0.4 and allowed it to download all
> the necessary dependencies. On that machine, properties defined at
> the command line are not passed along to the unit tests, whereas I had
> no such problem before I cleared out the repository.
...
> Any ideas which plugin is to blame?
I's probably either in Surefire itself, or in maven-surefire-plugin.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, any attachments and the information contained therein ("this
message") are confidential and intended solely for the use of the addressee(s). If
you have received this message in error please send it back to the sender and delete it.
Unauthorized publication, use, dissemination or disclosure of this message, either in
whole or in part is strictly prohibited.
**********************************************************************
Ce message électronique et tous les fichiers joints ainsi que les informations contenues
dans ce message ( ci après "le message" ), sont confidentiels et destinés
exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu
ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit
non expressément autorisées de ce message, sont interdites.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]