【问题标题】:How to solve "Could not find artifact com.ohadr:authentication-flows"?如何解决“找不到工件 com.ohadr:authentication-flows”?
【发布时间】:2015-09-11 05:38:10
【问题描述】:

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

...未能在项目客户端上执行目标:无法解决 项目的依赖 com.ohadr.auth-flows:client:war:1.0.0-SNAPSHOT:找不到 工件 com.ohadr:authentication-flows:jar:1.6.2-SNAPSHOT ... POM 对于 com.ohadr:authentication-flows:jar:1.6.2-SNAPSHOT 丢失,没有 可用的依赖信息...


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

     <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

现在我有:

...未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.1:compile 项目客户端上的(默认编译):编译失败:编译 失败:...impl/CustomCreateAccountEndpoint.java:[6,38] 包 com.ohadr.auth_flows.endpoints 不存在

我做错了什么?谢谢。

【问题讨论】:

  • 尝试使用1.6.1-RELEASE获取那个包,1.6.0-RELEASE好像没有。跨度>
  • 你是对的,1.6.1就是那个!谢谢。

标签: java maven authentication-flows


【解决方案1】:

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

您也可以克隆 authentication-flows 项目并在本地构建它,或者更改依赖项 客户端 pom 到版本 1.6.1-RELEASE。

HTH

【讨论】:

猜你喜欢
  • 2018-03-27
  • 2019-07-22
  • 1970-01-01
  • 1970-01-01
  • 2021-10-01
  • 1970-01-01
  • 2021-05-14
  • 2019-10-19
  • 1970-01-01
相关资源
最近更新 更多