[Maven] Include Bintray Packages in JCenter
When new packages are published to Bintray they need to be included first in JCenter before they can be synced out to Maven-Central.
This is a one time step that needs to be performed for the initial release of a project or when a new package is included in the release.
Step-by-step guide
- Navigate to the package you need to include on Bintray's site.
- Using the Old UI
- Click the 'Add to JCenter' button on the bottom right of the package detail page.
- If your package is a pom project, and does not include any jar files, ensure the select is pom project is checked before clicking "Send"
- Click the 'Add to JCenter' button on the bottom right of the package detail page.
- Using the New UI
- Select the "Add to JCenter" option from the Actions dropdown in the top right of the package detail view.
- If your package is a pom project, and does not include any jar files, ensure the select is pom project is checked before clicking "Send"
- Select the "Add to JCenter" option from the Actions dropdown in the top right of the package detail view.
- After the Bintray team has reviewed your request, you'll receive an approval message or rejection message through the Bintray message system.
- Packages may be rejected for a couple of reasons:
- Not including an SCM link in the package pom.xml or having the repository associated in Bintry - JCenter needs to verify the package is coming from the correct Maven group and exists in the source repository specified.
- Not including a sources.jar or javadoc.jar. Both sources and javadoc are required for distributing to Maven-Central, and therefore a requirement for being included in JCenter.
- Corrupt POM. Occasionally the Bintray package parser does not know how to interpret a pom.xml file, or the pom is missing a required field. In this case, before a message is even sent requesting review of the package Bintray will state the POM is corrupt. This generally can only be resolved by starting a discussion with JFrog support.
- Packages may be rejected for a couple of reasons:
- Once a package has been included in JCenter any current and future versions can be synced out to Maven-Central.
Related articles