我正在尝试从https://github.com/PAiC-team/Extended-jSS7构建Extended-jss7。
我在构建Restcomm jSS7 ::M3UA ::Api时陷入困境,见下面的错误“代码”。
似乎下面的URL上没有SCTP API 2.0.2-快照。
https://oss.sonatype.org/content/groups/public/org/mobicents/protocols/sctp/sctp-api/ https://repository.jboss.org/nexus/content/groups/public/org/mobicents/protocols/sctp/sctp-api/
我没有身份验证信息从PAiC到下面的网址,所以我可以检查。
https://maven.pkg.github.com/PAiC-team/*/org/mobicents/protocols/sctp/sctp-api/
对于如何解决这个问题,有什么想法或建议吗?
提前感谢!
[INFO] ------------------------------------------------------------------------
[INFO] Building Restcomm jSS7 :: M3UA :: Api :: m3ua-api 8.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://maven.pkg.github.com/PAiC-team/*/org/mobicents/protocols/sctp/sctp-api/2.0.2-SNAPSHOT/maven-metadata.xml
Downloading: http://download.java.net/maven/2/org/mobicents/protocols/sctp/sctp-api/2.0.2-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/groups/public/org/mobicents/protocols/sctp/sctp-api/2.0.2-SNAPSHOT/maven-metadata.xml
Downloading: http://www.datanucleus.org/downloads/maven2/org/mobicents/protocols/sctp/sctp-api/2.0.2-SNAPSHOT/maven-metadata.xml
Downloading: https://repository.jboss.org/nexus/content/groups/public/org/mobicents/protocols/sctp/sctp-api/2.0.2-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.mobicents.protocols.sctp:sctp-api:2.0.2-SNAPSHOT/maven-metadata.xml from/to github (https://maven.pkg.github.com/PAiC-team/*): Not authorized , ReasonPhrase:Unauthorized.
[WARNING] Failure to transfer org.mobicents.protocols.sctp:sctp-api:2.0.2-SNAPSHOT/maven-metadata.xml from https://maven.pkg.github.com/PAiC-team/* was cached in the local repository, resolution will not be reattempted until the update interval of github has elapsed or updates are forced. Original error: Could not transfer metadata org.mobicents.protocols.sctp:sctp-api:2.0.2-SNAPSHOT/maven-metadata.xml from/to github (https://maven.pkg.github.com/PAiC-team/*): Not authorized , ReasonPhrase:Unauthorized.发布于 2022-05-11 12:37:47
您可以下载Extended (https://github.com/PAiC-team/extended-sctp)并在本地构建它,这将将工件保存到本地maven存储库中。然后,您可以构建扩展的jSS7,它将使用maven本地存储库,而不是从Github包中提取一个。
构建扩展的SCTP使用
mvn clean install -DskipTests -Prelease -Drelease.name=sctp另一种选择是使用此链接https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry配置maven设置,以便从Github包注册表中提取包。
对扩展的SCTP和扩展的jSS7都推荐JDK 11。
https://stackoverflow.com/questions/72141527
复制相似问题