Hi Eugene, Thanks for your help. Configuring Eclipse to use the same Maven runtime (version 2.0.9) as in command-line solves the issue. As this is the version used on the CI environment I prefer to have the same in Eclipse. There seem to be some differences between 2.1 and 2.0 POM (in my case, in the way it handles system properties) so I'll keep a 2.0-compliant POM.
Is there any side-effect of using such external Maven in Eclipse rather than Embedded Maven? E.g. any impacts on Maven Builder / incremental build? ... Amélie Eugene Kuleshov wrote: > > Amélie, > > You might be hitting into incompatibilities with Maven version you are > using in command line and one used in Eclipse by default (you may want > to report that to Maven 3.0 issue tracker). > > To work around this, you can set default Maven runtime to be the same > as one used in the command line. See Window / Preferences... / Maven / > Installations > > If that does not help, please open jira issue and provide test project > that would allow to reproduce this. > > Thanks > > Eugene > > > Amélie wrote: >> Hi, >> >> I have configured system properties for surefire plugin: >> >> <plugin> >> <artifactId>maven-surefire-plugin</artifactId> >> <configuration> >> <systemProperties> >> <property> >> <name>my.property</name> >> <value>my.value</value> >> </property> >> </systemProperties> >> </configuration> >> </plugin> >> >> When I launch mvn surefire-report:report (or mvn test) from command-line >> it >> works fine. >> When I launch the same goal with the same pom.xml from Eclipse with >> m2eclipse launcher, the value is not defined (null). >> Any idea? >> Thanks, >> >> Amélie >> > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > -- View this message in context: http://www.nabble.com/System-properties-for-surefire-plugin-not-found-with-m2eclipse-tp20151089p20153335.html Sent from the Maven Eclipse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email