Uploaded image for project: 'Maven Help Plugin'
  1. Maven Help Plugin
  2. MPH-99

Evaluate has no output in quiet mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 3.0.0
    • evaluate
    • None
    • Patch

    Description

      When using help:evaluate in normal mode, the evaluation result is lost in a lot of Maven [INFO] :

      $ mvn help:evaluate -Dexpression=project.version
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building myProject 1.0.0
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-help-plugin:2.2:evaluate (default-cli) @ myProject ---
      [INFO] No artifact parameter specified, using 'com.test:myProject:pom:1.0.0' as project.
      [INFO]
      1.0.0
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.216s
      [INFO] Finished at: Fri Feb 07 10:32:22 CET 2014
      [INFO] Final Memory: 21M/224M
      [INFO] ------------------------------------------------------------------------
      $ 
      

      I was hoping that launching Maven in quiet mode would avoid all the logs and only display the evaluation result, but there is just no output at all.

      $ mvn --quiet help:evaluate -Dexpression=project.version
      $ 
      

      In attachment, a patch to use sysout instead of logging for evaluation output.

      Attachments

        1. output_on_quiet.patch
          0.8 kB
          Alexandre Garnier

        Issue Links

          Activity

            People

              gboue Guillaume Boué
              zigarn Alexandre Garnier
              Votes:
              8 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: