versions
versions copied to clipboard
documentation: it is not obvious what is the difference between release and version
I'm using versions plugin to update versions of libraries in my project. I have single master pom.xml with 17 sub-modules. I asked on stack-overflow how to speed up artifact resolution. Granted, question sounds aggressive - I'm sorry, it was written in a heat of the moment, because it takes around 40 minutes to check all dependencies. I run two commands (copied from the question):
mvn -B -U versions:use-releases -DexcludeReactor=false -DgenerateBackupPoms=false -DallowSnapshots=false -Dexcludes='org.springframework.boot:spring-boot-starter-parent:*,log4j:log4j:*,commons-io:commons-io:*,commons-beanutils:commons-beanutils:*'
mvn -B -U versions:use-latest-releases -DexcludeReactor=false -DgenerateBackupPoms=false -DallowSnapshots=false -Dexcludes='org.springframework.boot:spring-boot-starter-parent:*,log4j:log4j:*,commons-io:commons-io:*,commons-beanutils:commons-beanutils:*'
It was suggested (by @khmarbaise) that I should use use-latest-versions
rather than use-latest-releases
.
The problem: I have no idea and were unable to find on maven's documentation page what is the difference between the two, except that one uses latest versions and the other uses latest release. But what is the difference between release and version? Considering that I use allowSnapshots=false
there should be (probably) no real difference between the two - and yet there apparently is.
My suggestion is that it should be documented somewhere on plugin's page what these two mean.