I am trying out GitHub packages beta, i have a maven project which i want to publish.
In the POM.xml i did add below tag.
test-package is my repository name. 
    <repository>
        <id>github</id>
        <name>GitHub amarkum Apache Maven Packages</name>
        <url>https://maven.pkg.github.com/amarkum/test-package</url>
    </repository>
</distributionManagement>
I have properly configured access token in my ~/.m2/setting.xml.
When i run mvn deploy command it's not able to publish the package.
I tried with manually providing the token as well
mvn deploy -Dregistry=https://maven.pkg.github.com/amarkum -Dtoken=<MY_TOKEN_GENERATED>.
The token i generated has all the privileges to be sure, apart from
read:packages and write:packages scopes
Error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project test-package: Failed to retrieve remote metadata com.codefolx.test:test-package:1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.codefolx.test:test-package:1.0-SNAPSHOT/maven-metadata.xml from/to github (https://maven.pkg.github.com/amarkum/test-package): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
where am i going wrong?
 
     
    