Maven: Trying to Deploy with credentials in settings.xml file

You need to provide the repositoryId=VeggieCorp (not id) property so that maven knows from which <server> configuration it has to read the credentials. $ mvn deploy:deploy-file \ -Durl=http://repo.veggiecorp.com/artifactory/ext-release-local \ -Dfile=crypto.jar \ -DpomFile=pom.xml \ -DrepositoryId=VeggieCorp See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

Could not GET ‘play-services-location/maven-metadata.xml’. Received status code 502 from server: Bad Gateway

The problem is that a plugin (location in this case) didn’t specify a fixed version of an Android library. So in order to find which versions are available, Gradle must go to the repository to check. In this case, that repository is Bintray, which has been down for days and returning HTTP 502 Bad Request. … Read more

How to download the latest artifact from Artifactory repository?

Something like the following bash script will retrieve the lastest com.company:artifact snapshot from the snapshot repo: # Artifactory location server=http://artifactory.company.com/artifactory repo=snapshot # Maven artifact location name=artifact artifact=com/company/$name path=$server/$repo/$artifact version=$(curl -s $path/maven-metadata.xml | grep latest | sed “s/.*<latest>\([^<]*\)<\/latest>.*/\1/”) build=$(curl -s $path/$version/maven-metadata.xml | grep ‘<value>’ | head -1 | sed “s/.*<value>\([^<]*\)<\/value>.*/\1/”) jar=$name-$build.jar url=$path/$version/$jar # Download echo $url … Read more

Upload artifact to Artifactory using Gradle

That’s because you don’t have any publications. The artifactory-publish plugin works with maven-publish plugin and uploads publications. If you prefer working with the old maven plugin, you need artifactory plugin, not artifactory-publish. Take a look at the Overview part in “Working with Gradle” page of the official docs.

Where to put the gradle.properties file

Gradle looks for gradle.properties files in these places: in project build dir (that is where your build script is) in sub-project dir in gradle user home (defined by the GRADLE_USER_HOME environment variable, which if not set defaults to USER_HOME/.gradle) Properties from one file will override the properties from the previous ones (so file in gradle … Read more

Should we use Nexus or Artifactory for a Maven Repo? [closed]

I’m sure that if you only talk about storing binaries from “mvn deploy” both will do fine. We use Artifactory very extensively with all upgrades along the way. Lots of projects, numerous snapshots deployed and external repos proxied. Not a single problem. I find it hard to explain how other people experience issues with its … Read more

What is the difference between JFrog Artifactory and Bintray?

Thanks for the question, it’s a good one! The main difference between artifactory and bintray is in the intended usage. Artifactory is a development-time tool, while Bintray is a release, distribution-time tool. It might look like a subtle difference, but it has a great impact on the feature set of the products: For development, you … Read more

When maven says “resolution will not be reattempted until the update interval of MyRepo has elapsed”, where is that interval specified?

I used to solve this issue by deleting the corresponding failed to download artifact directory in my local repo. Next time I run the maven command the artifact download is triggered again. Therefore I’d say it’s a client side setting. Nexus side (server repo side), this issue is solved configuring a scheduled task. Client side, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)