Page tree
Skip to end of metadata
Go to start of metadata

Maven plugin supporting delivery to bintray repositories


bintray-maven-plugin

Download

The plugin is primary used during deploy phase, to add your artifact(s) to a Bintray repository, additionally to deploying in repositories from distributionManagement section. This plugin works like maven-deploy-plugin.

Goals

The Bintray deploy plugin has following goals.

bintray:deploy

This goal is used to automatically install the artifact, its pom and the attached artifacts produced by a particular project.

Parameters:

NameTypeDescription
idStringThe id can be used to pick up the correct credentials from the settings.xml.
User property: bintray.repository.id.
urlStringThe location of maven repository in Bintray.
User property: bintray.repository.url.
skipbooleanSet this to 'true' to bypass artifact deploy.
Default value: false.
User property: maven.deploy.skip.
retryFailedDeploymentCountintParameter used to control how many times a failed deployment will be retried before giving up and failing. If a value outside the range 1-10 is specified it will be pulled to the nearest value within the range 1-10.
Default value: 1.
User property: retryFailedDeploymentCount.

bintray:publish

This goal is used to publish all artifacts in Bintray repository.

Parameters:

NameTypeDescription
idStringThe id can be used to pick up the correct credentials from the settings.xml.
User property: bintray.repository.id.
urlStringThe location of maven repository in Bintray.
User property: bintray.repository.url.
skipbooleanSet this to 'true' to bypass publishing.
Default value: false.
User property: bintray.publish.skip.

Authentication

The plugin uses credentials from settings.xml.

Example

pom.xml

<plugin>
    <groupId>com.devexperts.bintray</groupId>
    <artifactId>bintray-maven-plugin</artifactId>
    <version>1.2</version>
    <configuration>
        <id>bintray-REPO-deploy</id>
        <url>https://api.bintray.com/maven/SUBJECT/maven/REPO</url>
    </configuration>
    <executions>
        <execution>
            <id>bintray-deploy</id>
            <goals>
                <goal>deploy</goal>
                <goal>publish</goal>
            </goals>
        </execution>
    </executions>
</plugin>

settings.xml

<server>
    <id>bintray-REPO-deploy</id>
    <username>USER</username>
    <password>API_KEY</password>
</server>

  • No labels