Repository navigation
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Plugin version
versions:2.25.1
JDK and Maven version
Apache Maven 3.10.0 (c43a36b8d67be7e0805a411bc0898af1a51f5472); Java version: 25.0.5, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-25.0.5.8-hotspot; OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
What did you expect to happen?
I am using Versions Maven Plugin with its default configuration to view dependency updates using versions:display-dependency-updates. As of version 2.25.0 I expect pre-release versions of dependencies to not be included in the output.
What happened instead?
Pre-release versions of dependencies are included in the output, regardless of whether I leave allowPreReleases as its default value, set it to true, or set it to false.
$ mvn versions:display-dependency-updates
[INFO] Scanning for projects...
[INFO] Loaded 24472 auto-discovered prefixes for remote repository central (prefixes-central.txt)
[INFO]
[INFO] ----------------< io.github.jjweston:bug-reproduction >-----------------
[INFO] Building bug-reproduction 1.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- versions:2.25.1:display-dependency-updates (default-cli) @ bug-reproduction ---
[INFO] Loaded 64 auto-discovered prefixes for remote repository apache.snapshots (prefixes-apache.snapshots.txt)
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] org.openjfx:javafx-controls ....................... 27.0.1 -> 28-ea+12
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.351 s
[INFO] Finished at: 2026-11-13T09:31:47-08:00
[INFO] ------------------------------------------------------------------------
$ mvn versions:display-dependency-updates -DallowPreReleases=false
[INFO] Scanning for projects...
[INFO] Loaded 24472 auto-discovered prefixes for remote repository central (prefixes-central.txt)
[INFO]
[INFO] ----------------< io.github.jjweston:bug-reproduction >-----------------
[INFO] Building bug-reproduction 1.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- versions:2.25.1:display-dependency-updates (default-cli) @ bug-reproduction ---
[INFO] Loaded 64 auto-discovered prefixes for remote repository apache.snapshots (prefixes-apache.snapshots.txt)
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] org.openjfx:javafx-controls ....................... 27.0.1 -> 28-ea+12
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.331 s
[INFO] Finished at: 2026-11-13T09:32:13-08:00
[INFO] ------------------------------------------------------------------------
$ mvn versions:display-dependency-updates -DallowPreReleases=true
[INFO] Scanning for projects...
[INFO] Loaded 24472 auto-discovered prefixes for remote repository central (prefixes-central.txt)
[INFO]
[INFO] ----------------< io.github.jjweston:bug-reproduction >-----------------
[INFO] Building bug-reproduction 1.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- versions:2.25.1:display-dependency-updates (default-cli) @ bug-reproduction ---
[INFO] Loaded 64 auto-discovered prefixes for remote repository apache.snapshots (prefixes-apache.snapshots.txt)
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] org.openjfx:javafx-controls ....................... 27.0.1 -> 28-ea+12
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.303 s
[INFO] Finished at: 2026-11-13T09:32:19-08:00
[INFO] ------------------------------------------------------------------------
How can we reproduce it?
This is a minimal pom.xml that I used to reproduce this bug:
<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
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.jjweston</groupId>
<artifactId>bug-reproduction</artifactId>
<version>1.0.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>27.0.1</version>
</dependency>
</dependencies>
</project>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
Leave pre-releases out of display-dependency-updates (#1491)