Visitar URL original
display-dependency-updates doesn't resolve property value · Issue #1150 · mojohaus/versions · GitHub
Skip to content

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

Closed

Description

@onacit

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] ------------------------------------------------------------------------

Activity

  1. self-assigned this
    on Sep 22, 2025
  2. added a commit that references this issue on Sep 22, 2025
    742fb7e
  3. added a commit that references this issue on Sep 27, 2025
    b7e4c5d
  4. added a commit that references this issue on Oct 1, 2025
    104dd30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions