I apologize. I saw some other ones, but this particular post didn't turn up in my search.
I failed to mention this in my previous email, but the property I need to set has an URL value. In the maven surefire plugin page regarding using system properties, it says that only Strings may be passed in as system properties, not other maven variable types. Is there a way to get around this? There was something similar here (http://www.nabble.com/Passing-Maven-Variable-as-a-system-property-to-th e-tests-tf2600462s177.html#a7356447), but to no conclusion. -jon -----Original Message----- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 11:15 AM To: Maven Users List Subject: Re: Setting VM argument in command line in Maven 2.x 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-t ests-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] 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]
