简体   繁体   中英

Personal Maven repository on Bitbucket/GitHub

Here is my problem. Im traing host my library on Bitbucket repo. For this i create branch 'releases', put in there this files and folders:

-com.mygroup
   - myartifact
      - 1.0.0
          - myartifact-1.0.0.aar
          - myartifact-1.0.0.aar.md5
          - myartifact-1.0.0.aar.sh1
          - myartifact-1.0.0.pom
          - myartifact-1.0.0.pom.md5
          - myartifact-1.0.0.pom.sh1
   - maven-metadata.xml
   - maven-metadata.xml.md5
   - maven-metadata.xml.sha1

For the next step im add new maven repo:

allprojects {
    repositories {
        jcenter()
        maven{
            url "https://api.bitbucket.org/1.0/repositories/myusername/myrepo/raw/releases/"
        }
    }
}

And add new dependency:

compile 'com.mygroup:myartifact:1.0.0'

Nothings work. Repository does not exist: Failed to resolve: com.mygroup:myartifact:1.0.0 What i'm doing wrong?

Can you try to add your credentials like this? :

maven {
        credentials {
            username "test@gmail.com"
            password "test"
        }
        url "https://bitbucket.org/test/maven-repo/raw/master/repository/"
    }

忘记手动配置您的存储库并开始使用Git Wagon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM