Maven Surefire
  1. Maven Surefire
  2. SUREFIRE-121

System properties set on the command line get clobbered

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0 (2.2 plugin)
    • Fix Version/s: 2.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux, Maven 2.0.4, Sun JDK 1.5U5, bash 3.0

      Description

      Some system properties get clobbered if you set them on the command line. For example,

      mvn clean test -Dtest=LoginTest -Dselenium.user=test32

      The 'test' system property will work, but the 'selenium.user' property will be null at runtime. I have tried:

      • hard coding the system property in the unit test, this worked fine.
      • setting the system properties in the pom file, this worked fine also.
      • tried an older version of the surefire plugin, this worked fine.
      1. testargs.zip
        5 kB
        Stefano Fornari

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Brenton Leanhardt
            • Votes:
              22 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development