我已经尝试过:
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 不存在
我究竟做错了什么?谢谢你。