File tree 3 files changed +22
-1
lines changed
maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire
maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire
3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -525,6 +525,11 @@ public class IntegrationTestMojo extends AbstractSurefireMojo {
525
525
@ Parameter (property = "failsafe.enableProcessChecker" )
526
526
private String enableProcessChecker ;
527
527
528
+ /**
529
+ * Properties file being used as system properties passed to the provider.
530
+ *
531
+ * @see AbstractSurefireMojo#systemPropertyVariables {@code systemPropertyVariables} for how the effective provider properties are calculated
532
+ */
528
533
@ Parameter (property = "failsafe.systemPropertiesFile" )
529
534
private File systemPropertiesFile ;
530
535
Original file line number Diff line number Diff line change @@ -314,16 +314,27 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref
314
314
/**
315
315
* List of System properties to pass to a provider.
316
316
*
317
- * @deprecated Use systemPropertyVariables instead.
317
+ * @deprecated Use {@link #systemPropertyVariables} instead.
318
+ * @see #systemPropertyVariables {@code systemPropertyVariables} for how the effective provider properties are calculated
318
319
*/
319
320
@ Deprecated
320
321
@ Parameter
321
322
private Properties systemProperties ;
322
323
323
324
/**
324
325
* List of System properties to pass to a provider.
326
+ * The effective system properties given to a provider are contributed from several sources:
327
+ * <ol>
328
+ * <li>{@link #systemProperties}</li>
329
+ * <li>{@link AbstractSurefireMojo#getSystemPropertiesFile()} (set via parameter {@code systemPropertiesFile} on some goals)</li>
330
+ * <li>{@link #systemPropertyVariables}</li>
331
+ * <li>User properties from {@link MavenSession#getUserProperties()}, usually set via CLI options given with {@code -D}</li>
332
+ * </ol>
333
+ * Later sources may overwrite same named properties from earlier sources, that means for example that one cannot overwrite user properties with either
334
+ * {@link #systemProperties}, {@link AbstractSurefireMojo#getSystemPropertiesFile()} or {@link #systemPropertyVariables}.
325
335
*
326
336
* @since 2.5
337
+ * @see #systemProperties
327
338
*/
328
339
@ Parameter
329
340
private Map <String , String > systemPropertyVariables ;
Original file line number Diff line number Diff line change @@ -502,6 +502,11 @@ public class SurefirePlugin extends AbstractSurefireMojo implements SurefireRepo
502
502
@ Parameter (property = "surefire.enableProcessChecker" )
503
503
private String enableProcessChecker ;
504
504
505
+ /**
506
+ * Properties file being used as system properties passed to the provider.
507
+ *
508
+ * @see AbstractSurefireMojo#systemPropertyVariables {@code systemPropertyVariables} for how the effective provider properties are calculated
509
+ */
505
510
@ Parameter (property = "surefire.systemPropertiesFile" )
506
511
private File systemPropertiesFile ;
507
512
You can’t perform that action at this time.
0 commit comments