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

Add ability to print mvn help:evaluate output to stdout in quiet mode

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Done
    • 3.0.1
    • 3.1.0
    • evaluate
    • None

    Description

      Currently if you use mvn help:evaluate -Dexpression=project.groupId there are printed out some lines like [INFO] ...]]. If you use mvn help:evaluate -Dexpression=project.groupId -q you won't get anything printed out at all.

      It would be a good idea to have an output via a supplemental parameter like this:
      mvn help:evaluate -Dexpression=project.groupId -DforceStdout=true -q to get printed out the information like this only:

      0.2.0-SNAPSHOT
      

      this would give the opportunity to use the call within scripts without filtering out things like [INFO]... etc.
      This would work like this:
      RESULT=$(mvn help:evaluate -Dexpression=project.groupId -DforceStdout=true -q)

      Attachments

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              khmarbaise Karl Heinz Marbaise
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: