You may use a Download Key’s credential in conjunction with Maven and Maven deploy.
In order to make the Maven to automatically publish, please add the following line to your pom.xml as the url line so that the maven deploy will also publish the files:
<distributionManagement> <repository> <id>bintray-repo-maven-example</id> <url>https://api.bintray.com/maven/test_user007/maven/test_package;publish=1</url> </repository></distributionManagement>
Please note that the “test_user007” and the $bintray.username are the repository owner’s usernames and not the one from the entitlements.
For the authentication, please include username and password using the credentials from Entitlement in the settings.xml. For example:
<servers> <server> <id>bintray-repo-maven-example</id> <username>downloadkey1@test_user007</username> <password>secret4downloadkey1</password> </server></servers>