1

我已经尝试过:
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... com.ohadr:authentication-flows:jar:1.6.2-SNAPSHOT 的 POM 丢失,没有可用的依赖信息...


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

     <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 (default-compile):编译失败:编译失败:...impl/CustomCreateAccountEndpoint.java:[6 ,38] 包 com.ohadr.auth_flows.endpoints 不存在

我究竟做错了什么?谢谢你。

4

1 回答 1

0

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

您也可以克隆 authentication-flows 项目并在本地构建它,或者将 client-pom 中的依赖项更改为 1.6.1-RELEASE 版本。

高温高压

于 2015-06-25T15:06:46.747 回答