gpt4 book ai didi

java - 如何解决 "Could not find artifact com.ohadr:authentication-flows"?

转载 作者:太空宇宙 更新时间:2023-11-04 13:44:08 25 4
gpt4 key购买 nike

我尝试过:
mvn clean install -DskipTests -DdownloadSources=true
用于建筑https://github.com/OhadR/Authentication-Flows.git
我有:

...Failed to execute goal on project client: Could not resolve dependencies for project com.ohadr.auth-flows:client:war:1.0.0-SNAPSHOT: Could not find artifact com.ohadr:authentication-flows:jar:1.6.2-SNAPSHOT... The POM for com.ohadr:authentication-flows:jar:1.6.2-SNAPSHOT is missing, no dependency information available...


接下来,我尝试添加此存储库:

     <repository>
<id>central-maven</id>
<name>Central Maven</name>
<url>http://central.maven.org/maven2</url>
</repository>

以及下载 jar ( http://central.maven.org/maven2/com/ohadr/authentication-flows/1.6.0-RELEASE/authentication-flows-1.6.2-RELEASE.jar ) 并手动安装:

 mvn install:install-file -DgroupId=com.ohadr \
-DartifactId=authentication-flows \
-Dversion=1.6.2-SNAPSHOT \
-Dpackaging=jar -Dfile=authentication-flows-1.6.2-RELEASE.jar

现在我有:

...Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project client: Compilation failure: Compilation failure:...impl/CustomCreateAccountEndpoint.java:[6,38] package com.ohadr.auth_flows.endpoints does not exist

我做错了什么?谢谢。

最佳答案

客户端应用程序的最新版本(主分支)取决于authentication-flows JAR 的“最新”版本 - SNAPSHOT 版本。 maven-repository 中不存在快照,这就是您收到错误的原因。

您也可以克隆身份验证流程项目并在本地构建它,或者更改依赖项将 client-pom 更新为 1.6.1-RELEASE 版本。

HTH

关于java - 如何解决 "Could not find artifact com.ohadr:authentication-flows"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31036369/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com