Please search the archives before sending emails in the future. Many questions have been asked and answered, frequently in the last week or month.
This was just discussed in the last couple days: http://www.nabble.com/-M2--Acessing-command-line-properties-from-JUnit-tests-tf4427748s177.html#a12630944 Wayne On 9/18/07, Yu, Jonathan T <[EMAIL PROTECTED]> wrote: > I have seen similar threads about this from before, but regarding maven > 1.x, I was hoping to get an answer for maven 2.x. > > > > In Eclipse, I can run testcases with properties that I set using > -Dmyproperty=myvalue in the "VM arguments" section. > > > > I am wondering if there is a way of achieving this in maven through > command line. I have tried two approaches and neither of them seems > work properly: > > > > Mvn -Dmyproperty=myvalue test > > > > Mvn -Dmyproperty=myvalue -Dmaven.junit.sysproperties=myproperty test > > > > Thanks. > > > > -Jon > > > This email and any files transmitted with it are confidential, proprietary > and intended solely for the individual or entity to whom they are addressed. > If you have received this email in error please delete it immediately. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
