Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7829

CLI properties passed with -D are not accessible with session.getSystemProperties()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 4.0.0-alpha-7
    • None
    • Command Line
    • None

    Description

      Context

      • Maven 4.0.0-alpha-6 and above
      • A Maven extension collecting CLI arguments passed with -D

      Issue

      In a Maven extension, I am collecting CLI arguments which allow to skip tests if present (skipTests, skipITs, maven.test.skip). 

      The problem is that since Maven 4.0.0-alpha06, these informations are not part of the session.systemProperties anymore.

      This is working fine until this commit if not mistaken.

      The missing instruction being this one.

      If I add this back on the latest version of master, I am able to collect the information.

      Alternative

      Those properties can be accessed via the session.getUserProperties()

      Please confirm if this is the expected way to collect the data.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            JeromeP Jerome Prinet
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: