<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Version-Range on Maveniverse</title><link>https://maveniverse.eu/tags/version-range/</link><description>Recent content in Version-Range on Maveniverse</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 17 Apr 2026 14:30:01 +0200</lastBuildDate><atom:link href="https://maveniverse.eu/tags/version-range/index.xml" rel="self" type="application/rss+xml"/><item><title>Taming Maven Version Ranges</title><link>https://maveniverse.eu/blog/2026/04/17/taming-maven-version-ranges/</link><pubDate>Fri, 17 Apr 2026 10:07:53 +0100</pubDate><guid>https://maveniverse.eu/blog/2026/04/17/taming-maven-version-ranges/</guid><description>&lt;p&gt;Maven ranges are very controversial topic. If you ask anyone, the response most often is &amp;ldquo;do not use them&amp;rdquo;.
And while there are good reasons for that, there are also some use cases where they can be useful.
So lets see how can Maven 3.10.x help with them.&lt;/p&gt;
&lt;h2 id="problems"&gt;Problems&lt;/h2&gt;
&lt;p&gt;Biggest issue with ranges, is that when they are collected by resolver, following steps are applied:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;current POM processed dependency contains a version range, for example &lt;code&gt;[1.0,2.0)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;resolver collects all versions of the dependency, for example &lt;code&gt;1.0&lt;/code&gt;, &lt;code&gt;1.1&lt;/code&gt;, &lt;code&gt;1.2&lt;/code&gt; etc up to &lt;code&gt;2.0&lt;/code&gt; (including alphas, snapshots&amp;hellip; if such artifacts are in scope, for example snapshot repository is used for resolution)&lt;/li&gt;
&lt;li&gt;dirty graph gets nodes created for each version and builds subtree for each (given dependencies may differ across versions)&lt;/li&gt;
&lt;li&gt;finally, conflict resolver &amp;ldquo;choose&amp;rdquo; the winner node (version) and eliminates the rest.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From these, one can immediately notice several problems:&lt;/p&gt;</description></item></channel></rss>