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

@{argLine} not replaced if undefined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • Maven Surefire Plugin
    • None
    • Maven 3.5.0

    Description

      I need to specify argLine for my tests. I also need it to work with Java agent Jacoco when a certain Maven profile is activated.

      So I added `@

      {argLine}` to my argLine property and it works fine when running with Jacoco agent activated.

      When running the tests without profile that activates Jacoco agent, the surefire plugin fails with following line (relevant maven logs attached) :

      Error: Could not find or load main class @{argLine}

      I guess @{argLine}

      is only replaced if an argLine has been defined before by another plugin but if not it is not replaced at all.

      Should'nt it be replaced in any case and if none defined, just replace with empty value?

      Attachments

        1. maven.log
          5 kB
          Matthieu Fillon

        Activity

          People

            tibordigana Tibor Digana
            mfillon Matthieu Fillon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: