I am trying to publish my Android library to JCenter using the Bintray website.
I created a Maven-style zip file that includes all the necessary artifacts: aar, sources, javadocs and a pom file using the following blog entry:
http://blog.blundell-apps.com/locally-release-an-android-library-for-jcenter-or-maven-central-inclusion/
Everything seems to be inside the created zip file, but still I get an error when trying to link my package with JCenter:
Add POM file to the latest version of your package
I’m not sure what happened because inside is located ...
Any ideas what could be wrong?
UPDATE:
This is the contents of the zip file:
com
└───foxxymobile
└───wearmock
└───wear-mock
│ maven-metadata.xml
│ maven-metadata.xml.md5
│ maven-metadata.xml.sha1
│
└───0.1.0
wear-mock-0.1.0-javadoc.jar
wear-mock-0.1.0-javadoc.jar.md5
wear-mock-0.1.0-javadoc.jar.sha1
wear-mock-0.1.0-sources.jar
wear-mock-0.1.0-sources.jar.md5
wear-mock-0.1.0-sources.jar.sha1
wear-mock-0.1.0.aar
wear-mock-0.1.0.aar.md5
wear-mock-0.1.0.aar.sha1
wear-mock-0.1.0.pom
wear-mock-0.1.0.pom.md5
wear-mock-0.1.0.pom.sha1
And this is the POM file:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.foxxymobile.wearmock</groupId>
<artifactId>wear-mock</artifactId>
<version>0.1.0</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
<version>21.0.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
, pom zip. script.