我正在尝试构建应用程序 Roda 并遵循以下指南:https://github.com/keeps/roda/blob/master/documentation/Developers_Guide.md
过了一段时间我遇到了这个问题:
[ERROR] Failed to execute goal on project roda-core: Could not resolve dependencies for project org.roda-project:roda-core:jar:4.6.0-SNAPSHOT:
Failed to collect dependencies at org.roda-project:commons-ip2:jar:2.3.0: Failed to read artifact descriptor for org.roda-project:commons-ip2:jar:2.3.0:
Could not transfer artifact org.roda-project:commons-ip2:pom:2.3.0 from/to github (https://maven.pkg.github.com/keeps/*): Authentication failed for https://maven.pkg.github.com/keeps/*/org/roda-project/commons-ip2/2.3.0/commons-ip2-2.3.0.pom 401 Unauthorized
我不是 Maven 专家。帮助解决这个问题会很有帮助。
提前致谢。
/保罗
更新:上面的代码代表最新版本的 Roda 4,但尝试构建旧版本 Roda 3 时,maven 不会失败。也许是对正在进行的开发的一些保护?
答案1
简而言之。要访问 Maven Github 包,必须进行强制身份验证。
/保罗