You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Miroslav Zaťko (Jira)" <ji...@apache.org> on 2023/09/25 08:16:00 UTC

[jira] [Commented] (MPH-182) mvn help:evaluate does not evaluate java.version correctly

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

Miroslav Zaťko commented on MPH-182:
------------------------------------

just a note: in my case plugin shows "complete" value of java internal property java.version like "17.0.8.1" resp. "11.0.20.1" resp. "1.8.0_382" not only "17" as in screenshot

> mvn help:evaluate does not evaluate java.version correctly
> ----------------------------------------------------------
>
>                 Key: MPH-182
>                 URL: https://issues.apache.org/jira/browse/MPH-182
>             Project: Maven Help Plugin
>          Issue Type: Bug
>          Components: evaluate
>         Environment: macOS 11.6
> Macbook Pro 16" 2019
> Maven 3.8.2
>            Reporter: Matt smith
>            Priority: Minor
>         Attachments: Screenshot 2021-10-08 at 11.19.07.png, Screenshot 2021-10-08 at 11.19.38.png
>
>
> Steps to reproduce:
>  # Create a Java project with Maven.
>  # Set a new property called `java.version` and set the value to a different value from your installed JDK.
>  # Run mvn help:evaluate and use the expression `${java.version}`
>  # The Java version that will be output will be your JDK version, not the property value.
> Ideal behaviour:
>  * Value that is output is the value that is within the `java.version` property.
> Workaround:
>  * Set another property (e.g. `something`) to the value `${java.version}`
>  * Run mvn help:evaluate and use the expression `${something}`
>  * The correct property value will be output.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)