我正在尝试从https://github.com/PAiC-team/Extended-jSS7构建Extended-jss7。
我被困在构建Restcomm jSS7:: M3UA:: Api见下面的错误"code"
似乎SCTP API 2.0.2-SNAPSHOT在
以下的url上不可用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/
和我没有身份验证信息到下面的URL从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.
您可以下载扩展SCTP (https://github.com/PAiC-team/extended-sctp)并在本地构建它,这将把工件保存到本地maven存储库中。然后,您可以构建扩展的jSS7,它将使用maven本地存储库,而不是从Github包中提取一个。
使用
构建扩展SCTPmvn 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