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

${session.parallel} not correctly set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.9
    • 3.5.0-alpha-1, 3.5.0
    • None
    • None

    Description

      Running mvn help:evaluate -T 3 and resolving the property session.parallel returns true when run with Maven 3.0.5.

      When running it with 3.3.9, this property resolves to false.

      mvn help:evaluate -T 3
      [INFO] Scanning for projects...
      [INFO]
      [INFO] Using the MultiThreadedBuilder implementation with a thread count of 3
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-help-plugin:2.2:evaluate (default-cli) @ standalone-pom ---
      [INFO] No artifact parameter specified, using 'org.apache.maven:standalone-pom:pom:1' as project.
      [INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
      ${session.parallel}
      [INFO]
      false
      

      E.g. Surefire relies on this property, to check whether Maven is running in parallel mode, as mentioned in the comments of SUREFIRE-1301.

      Attachments

        Issue Links

          Activity

            People

              gboue Guillaume Boué
              rraumberger Richard Raumberger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: