Download latest release version in version ranges - maven

I am using version-ranges to resolve latest release version but it downloads latest version(whether SNAPSHOT or RELEASE). I want to block snapshot and fetch latest release version only.
Is there any way to block SNAPSHOT download or if I can block publish of SNAPSHOT.
Thanks!

Related

which one is the latest version of maven to use

I am trying to use maven in our project and am new to it.
checking this https://maven.apache.org/download.cgi
3.6.0 version is latest version to download.
Someone was saying there is maven 4 is latest. Not sure where to download this from and can we use this for java 8.
Which one is latest version to use?
From https://maven.apache.org/download.cgi
Apache Maven 3.6.0 is the latest release and recommended version for
all users.
Works nicely with Java 8. Note that your IDE may bundle an older version in the unlikely case you run into problems.

gax-java 0.3.0 latest version

Latest version of gax java (Google Api EXtensions) is 0.3.0 as per gax-java, but there is no jar file found for the same .
Maven Repository lists version 0.2.0 as the latest. Could some one help me out in finding the latest jar version.
Maven repository has posted the latest version.

Difficulty upgrade from version 3.4.1 to 4.5.2

Hi I'm trying to upgrade Sonarqube from 3.4.1 to 4.5.2 but had some issues.
I ensured that the sonar.properties file and the wrapper.conf file were both the same and changed them accordingly on the newer version. To install it we simply moved 4.5.2 onto the server and changed the symlink, this worked until it tried to upgrade the database then it stated 'Upgrade is impossible'
After this we couldn't get Sonar to start again, so we rolled it back to a previous version..
So our current predicament is whether or not to create a new version of Sonar on the latest version or to slowly upgrade the old one but from 3.4.1 to 3.4.2 etc..
What would you suggest?
Thanks

Maven: Remove last version when deploy

Is there a way to remove the last version of a release in an artifact repository when deploy the new version? I mean, imagine that I have deployed version 1.0.0 of com.company.project:project. If I deploy version 1.1.0 of the same artifact, I'd want that version 1.0.0 was deleted. Sorry if it is obvious, I'm newbie in this...

How to not download new version of jar with buildr?

For example if I have transitive('xxx:xxx:jar:1.4-SNAPSHOT') in artifacts.rb I don't want that when I run buildr to recive new version of 1.4-SNAPSHOT.
For buildr 1.4.0 no new version was download when I run buildr, but with buildr 1.4.4 it download new version if exist.
The whole idea of making a dependency as a SNAPSHOT dependency is for it to be updated when changed.
As to why buildr-1.4.4 downloads SNAPSHOT updates and 1.4.0 does not, this was introduced in buildr-1.4.2 as per this link.
You could run buildr in offline mode (-o) so that it does not download any updates.

Resources