You need to pass them in explicitly using surefire plugin's properties configuration
-D On Wed, Dec 2, 2009 at 4:55 AM, Costin Caraivan <ccarai...@axway.com> wrote: > > Hello, > > Does Maven pass the default properties to a Junit test launched? If so, how > can I access them? > > For example I would like to know ${project.groupId} or ${project.version}. > Is there any way I can access these from the Junit tests? > > Thank you, > Costin. > > PS: What I really want to know if there is a mechanism in place, I don't > really want to fill the configuration with duplicate properties, or make a > temporary file which I read later. If there's no elegant solution, I'll just > read the from somewhere :) > -- > View this message in context: > http://old.nabble.com/How-to-access-Maven-default-properties-from-a-Junit-test--tp26608418p26608418.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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