I am trying to publish my Android library to JCenter using Bintray's web site.
I have created a Maven styled zip file which includes all the needed artifacts: aar, sources, javadocs and pom file using the following blog post:
Everything seems to be in place inside the created zip file but still I get an error when trying to link my package to JCenter:
Add a POM file to the latest version of your package
I am not sure what's wrong, since a pom is inside..
Any ideas what might be wrong?
UPDATE:
This is the content 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>
AS you can see, the pom is located inside the zip. This is how the script created it.