using a private github repository to host a private maven artifact

柔情痞子 提交于 2019-12-22 09:48:46

问题


Question title kind of explains it all. I've seen other questions referencing this but I think they are more geared towards the github repository being public. Using this configuration in the dependent project works when the repository is public:

<repositories>
    <repository>
        <id>company-core-mvn-repo</id>
        <url>https://raw.github.com/company/company-core/mvn-repo/</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
    </repository>
</repositories>


<dependencies>
    <dependency>
        <groupId>com.company.core</groupId>
        <artifactId>company-core</artifactId>
        <version>1.1</version>
    </dependency>
</dependencies>

But not when I change the settings to private. I was hoping someone could eplicitly tell me that this isn't possible before I try another approach. It seems strange that the dependency has no issues publishing to github yet I can't find a configuration that will allow the dependent package to pull it down.

来源:https://stackoverflow.com/questions/41192900/using-a-private-github-repository-to-host-a-private-maven-artifact

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!