AFAICT, the lazytest maven plugin launches tests in a separate JVM:
https://github.com/stuartsierra/lazytest/blob/master/modules/lazytest-maven-plugin/src/main/java/com/stuartsierra/lazytest/AbstractLazytestMojo.java#L190

and only propages System environment variables:
https://github.com/stuartsierra/lazytest/blob/master/modules/lazytest-maven-plugin/src/main/java/com/stuartsierra/lazytest/AbstractLazytestMojo.java#L182

but not System properties:
https://github.com/stuartsierra/lazytest/blob/master/modules/lazytest-maven-plugin/src/main/java/com/stuartsierra/lazytest/AbstractLazytestMojo.java#L143

So indeed the -Dfoo=bar maven/java way of passing properties will not work
out of the box

2012/2/27 Rob Lally <rob.la...@gmail.com>

> I'm reasonably sure that with maven you can pass system properties using
> the form
>
>        mvn goalname -Dinsert.property.here=true
>
> R.
>
>
> On 27 Feb 2012, at 17:54, Vladimir Matveev wrote:
>
> > Thank you again, I will try to look harder for it.
> >
> > On Feb 27, 5:46 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote:
> >> Sorry, Vladimir, I don't have an answer for you right now. I'm sure
> there's
> >> a way to set system properties in Maven, but I don't have the relevant
> >> documentation at hand.
> >>
> >> -S
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to