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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: evaluate
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: