mojohaus / versions

Versions Maven Plugin
https://www.mojohaus.org/versions/versions-maven-plugin/
Apache License 2.0
336 stars 267 forks source link

display-dependency-updates doesn't resolve property value #1150

Open onacit opened 2 months ago

onacit commented 2 months ago

It would be better when the mojo resolve properties.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <properties>
    <version.org.junit.jupiter>5.11.1</version.org.junit.jupiter>
    <version.org.junit>${version.org.junit.jupiter}</version.org.junit>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.junit</groupId>
        <artifactId>junit-bom</artifactId>
        <version>${version.org.junit}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

</project>
$ mvn -DprocessDependencyManagementTransitive=false versions:display-dependency-updates     
...
[INFO] The following dependencies in Dependency Management have newer versions:
[INFO]   com.fasterxml.jackson:jackson-bom ................... 2.17.2 -> 2.18.0
[INFO]   org.junit:junit-bom ........... ${version.org.junit.jupiter} -> 5.11.1 <<<<<<<<<<<<<<<<<<<<<
[INFO] 
[INFO] No dependencies in Dependencies have newer versions.
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.231 s
[INFO] Finished at: 2024-09-27T14:29:07+09:00
[INFO] ------------------------------------------------------------------------