Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
onacit opened this issue Sep 27, 2024 · 0 comments
Open

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

onacit opened this issue Sep 27, 2024 · 0 comments
Labels

Comments

@onacit
Copy link
Contributor

onacit commented Sep 27, 2024

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] ------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants