【发布时间】: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