Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-121

System properties set on the command line get clobbered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0 (2.2 plugin)
    • 2.6
    • None
    • None
    • 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.

      Attachments

        1. testargs.zip
          5 kB
          Stefano Fornari

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              brenton Brenton Leanhardt
              Votes:
              22 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: