Skip to content

[MPH-182] mvn help:evaluate does not evaluate java.version correctly #310

@jira-importer

Description

@jira-importer

Matt smith opened MPH-182 and commented

Steps to reproduce:

  1. Create a Java project with Maven.
  2. Set a new property called java.version and set the value to a different value from your installed JDK.
  3. Run mvn help:evaluate and use the expression ${java.version}
  4. 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.

Attachments:

2 votes, 3 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions