maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <>
Subject [jira] [Updated] (MPH-144) mvn help:evaluate -Dexpression=project.groupId -q does not print anything
Date Fri, 30 Mar 2018 17:34:00 GMT


Karl Heinz Marbaise updated MPH-144:
    Summary: mvn help:evaluate -Dexpression=project.groupId -q does not print anything  (was:
mvn help:evaluate -Dexpression=project.groupId Can't be used in scripts.)

> mvn help:evaluate -Dexpression=project.groupId -q does not print anything
> -------------------------------------------------------------------------
>                 Key: MPH-144
>                 URL:
>             Project: Maven Help Plugin
>          Issue Type: New Feature
>            Reporter: Karl Heinz Marbaise
>            Assignee: Karl Heinz Marbaise
>            Priority: Minor
> 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:
> {code}
> 0.2.0-SNAPSHOT
> {code}
> this would give the opportunity to use the call within scripts directory without filtering
out things lie {{[INFO]...}} etc. like this:
> {{RESULT=$(mvn help:evaluate -Dexpression=project.groupId -DforceStdout=true -q)}}

This message was sent by Atlassian JIRA

View raw message