maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <>
Subject [jira] [Commented] (MPH-154) The output of the plugin should contain a line-ending
Date Mon, 30 Jul 2018 17:47:00 GMT


Karl Heinz Marbaise commented on MPH-154:

The intention was exactly does the output *not* contain a line ending cause it makes usage
in scripts easier like:
RESULT=$(mvn -N -q org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression='project.groupId'
If it would contain a line ending this had meant you have to strip the line feed in situations
like the above..
In the current implementation you can simply use it:
echo $RESULT
Apart from that Can you explain what you are trying to achieve ? Do you have an example pom
which shows the above results? The output {{Picked up _JAVA_OPTIONS}} is only known to me
inside Jenkins which is done by the pipeline spy integration....

> The output of the plugin should contain a line-ending
> -----------------------------------------------------
>                 Key: MPH-154
>                 URL:
>             Project: Maven Help Plugin
>          Issue Type: Improvement
>            Reporter: Patrick van Rhijn
>            Priority: Major
> When you use the plugin the output doesn't contain a line-ending making the output hard
to use in scripting when you have JAVA_OPTIONS defined.
> In the current situation the plugin gives me the following output: 
> $ mvn -N -q org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression='project.groupId'
> * up _JAVA_OPTIONS: -XX:+ForceTimeHighResolution -Dsun.java2d.noddraw=true
> It would be better if the output would be divided over two lines and look like the output
of the exec-maven-plugin:
> $ mvn -N -q -Dexec.executable='echo' -Dexec.args='${project.groupId}' org.codehaus.mojo:exec-maven-plugin:1.4.0:exec
> **
> *Picked up _JAVA_OPTIONS: -XX:+ForceTimeHighResolution -Dsun.java2d.noddraw=true -Duser.timezone='Europe/Amsterdam'*

This message was sent by Atlassian JIRA

View raw message