You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Boué (JIRA)" <ji...@apache.org> on 2016/10/16 21:03:20 UTC

[jira] [Commented] (MPH-99) Evaluate has no output in quiet mode

    [ https://issues.apache.org/jira/browse/MPH-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15580534#comment-15580534 ] 

Guillaume Boué commented on MPH-99:
-----------------------------------

Fixed in [r1765191|http://svn.apache.org/viewvc?view=revision&revision=1765191]. About resolution: {{quiet}} mode will still result in no output; instead, a new {{output}} parameter was added that allows to write the result of evaluating a given expression to a file. And if no expression is given, the parameter is ignored.

Sample usage: {{mvn help:evaluate -Dexpression="project.groupId" -Doutput=result.txt}}. The file {{result.txt}} would contain the groupId evaluated.

> Evaluate has no output in quiet mode
> ------------------------------------
>
>                 Key: MPH-99
>                 URL: https://issues.apache.org/jira/browse/MPH-99
>             Project: Maven Help Plugin
>          Issue Type: Bug
>          Components: evaluate
>    Affects Versions: 2.2
>            Reporter: Alexandre Garnier
>         Attachments: output_on_quiet.patch
>
>
> When using {{help:evaluate}} in normal mode, the evaluation result is lost in a lot of Maven {{[INFO\]}} :
> {code:language=bash}
> $ 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] ------------------------------------------------------------------------
> $ 
> {code}
> 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.
> {code:language=bash}
> $ mvn --quiet help:evaluate -Dexpression=project.version
> $ 
> {code}
> In attachment, a patch to use sysout instead of logging for evaluation output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)