How to not download new version of jar with buildr? - maven

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.

Related

Is it possible to force Gradle to downgrade version of some dependency with particular extension

I have dependencies on several plugins in project. These dependencies are put in plugins directory during project build. Here is the example:
plugin 'com.company:some-plugin:1.0#msi'
plugin 'com.company:some-plugin:1.0#pkg'
Now it is time to upgrade plugin version but for some reason I want to keep version of plugin for Mac (pkg) unchanged:
plugin 'com.company:some-plugin:2.0#msi'
plugin 'com.company:some-plugin:1.0#pkg'
How can I do it? Regular force does not help. What I see now is that Gradle upgrades version of all dependencies without considering of extension.
P.S. I use Gradle 5.2

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.

Maven update in macOS

My current maven version is 3.5.0 I would like to update this version to 3.5.4 in my Mac book macOS based system without using homebrew.
When I extracted the new version maven then the command mvn -version still points to the older one. It doesn't override the new version with old as if would have expected.
I could resolve this issue.
Extract the maven
change the path in my .bash_profile file from maven-3.5.0 to maven-3.5.4
export M2_HOME=/Applications/apache-maven-3.5.4
export PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin
Quit and reopen the command window fetching maven version.
Thus maven was updated with the latest version.

Download latest release version in version ranges

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!

Installing neo4j-spatial on neo4j 2.3.1

I cloned the neo4j-contrib/spatial repo on github, but the recommended "mvn install" doesn't work--it breaks on a bunch of missing files and symbols (e.g. "package org.neo4j.index.impl.lucene does not exist").
The pom.xml file in the repo references neo4j 3.0.0, but I'm running neo4j 2.3.1 on Ubuntu 15.04. Neo4j 3.0.0 is not yet listed as a stable release.
There is a separate repo of releases for neo4j-spatial at neo4j-contrib/m2, including one targeting neo4j-2.3.0, but having cloned the repo, it's not clear whether or how to use this to get the mvn install to work.
Any tips?
Which branch are you trying to build? This branch is the release targeting Neo4j 2.3 and should build fine. If you aren't able to build please submit a Github issue with the error(s).
For installing the server plugin there are pre-compiled versions of the JAR files available here that you can just unzip and drop in the /plugins directory. The most recent targets Neo4j 2.3. This should work fine with Neo4j 2.3.1 (I used this neo4j-spatial release with Neo4j 2.3.1 for a project last week without any problems).

Resources