Need help with other JFrog products?
Have a question? Want to report an issue? Contact JFrog support
Working with Maven
You can resolve artifacts from and deploy them to Bintray directly using the Maven client.
You can configure your Maven settings.xml file to resolve artifacts through Bintray. The example below shows a settings file that is generated by Bintray.
To deploy artifacts using the Maven client, you first need to declare your Bintray credentials in the settings.xml file using your API key as your password (not your Bintray login password).
Then, add the the following Distribution Management section to your project’s pom.xml file to tell Maven to deploy into this package using the credentials you configured in the previous step.
Working with Gradle
You can resolve artifacts from and deploy them to Bintray directly using Gradle.
To resolve Maven artifacts from your Maven repository in Bintray use the following snippet in your Gradle configuration:
Working with cURL
You can download a file directly using the following command:
To upload a file directly use the following command:
JCenter is a one-stop-shop for Maven artifacts in Bintray. It is a large, popular, Maven repository that is managed by Bintray and is publicly available to all Bintray users.
As a Bintray user, you are able to include your public Maven packages in JCenter. As one of the most popular repositories in Bintray, this will expose your packages to many users and make them easier to find. Nevertheless, you retain ownership over your packages and are the only one who may update or modify them, and any changes you make are automatically updated in JCenter. Note that you cannot include any private packages (i.e., those hosted in a private repository) in JCenter because since all packages in JCenter must remain publicly available.
Working with JFrog Artifactory
JFrog Artifactory is also a fully-fledged Maven repository offering some unique features to optimize development with Maven. You can configure a remote repository in JFrog Artifactory to proxy any public Maven repository on Bintray as follows:
From the Artifactory UI, create a remote repository and give it a name such as "maven-remote".
Specify the following as the URL for your remote repository in Artifactory:
As a best practice, we recommend including your remote repository in a virtual repository in Artifactory.
Working with Nexus
You can configure a remote repository in Nexus to proxy any public Maven repository on Bintray as follows:
From the Nexus UI, create a new remote repository and give it a name such as "maven-remote".
Specify the following as the "remote storage location" for your remote repository in Nexus:
Make sure that "Repository Policy" is set to "Release".
As a best practice, we recommend including your remote repository in a repository group.