admin管理员组文章数量:1287579
The project setup is as follows:
- Project A (security)
- Project B (common-util)
Both are built with Maven. Project B publishes its package to the GitHub package of its private repository. Project A has a dependency on the artifact from Project B in the pom.xml.
Error
Could not resolve dependencies for project company.security:security:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at company:common-util:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for company:common-util:jar:0.0.1-SNAPSHOT: Could not transfer artifact company:common-util:pom:0.0.1-SNAPSHOT from/to github (): authentication failed for .0.1-SNAPSHOT/common-util-0.0.1-SNAPSHOT.pom,
I have generated the PAT with read & write access, but no luck.
Is anything I'm missing or wrong? Help me to resolve this.
Settings.xml
<settings xmlns=".0.0"
xmlns:xsi=";
xsi:schemaLocation=".0.0
.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>company</username>
<password>************</password>
</server>
</servers>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>github</id>
<url>;/url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>github</id>
<url>;/url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
</settings>
project A dependency
<repositories>
<repository>
<id>github</id>
<url>;/url>
</repository>
</repositories>
Project B dependency
<distributionManagement>
<repository>
<id>github</id>
<url>;/url>
</repository>
</distributionManagement>
版权声明:本文标题:GitHub package authentication with Maven to private package registry of other repository - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741310468a2371622.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论