org.picketlink.distribution:picketlink-jbas7:jar:2.8.0 的 POM。缺少,没有可用的依赖信息

The POM for org.picketlink.distribution:picketlink-jbas7:jar:2.8.0. is missing, no dependency information available

我正在尝试 运行 纠察链接快速入门来自:

https://github.com/jboss-developer/jboss-picketlink-quickstarts

更具体地说:

https://github.com/jboss-developer/jboss-picketlink-quickstarts/tree/master/picketlink-federation-saml-idp-basic

但是在每次尝试安装 Maven 依赖项时,我都会遇到下一个错误:

Could not find artifact org.picketlink.distribution:picketlink-jbas7:jar:2.8.0.Beta1-SNAPSHOT

这是我 $ mvn clean package jboss-as:deploy

之后的完整日志
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PicketLink Quickstart: picketlink-federation-saml-idp-basic 2.8.0.Beta1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.picketlink.distribution:picketlink-jbas7:jar:2.8.0.Beta1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.650 s
[INFO] Finished at: 2015-10-17T01:39:15-05:00
[INFO] Final Memory: 6M/80M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project picketlink-federation-saml-idp-basic: Could not resolve dependencies for project org.picketlink.quickstarts:picketlink-federation-saml-idp-basic:war:2.8.0.Beta1-SNAPSHOT: Could not find artifact org.picketlink.distribution:picketlink-jbas7:jar:2.8.0.Beta1-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

我看到您可能需要将 settings.xml 添加到您的 maven 文件夹,但我不知道如何制作或在该文件中放入什么。

如您所说,maven 告诉您缺少 org.picketlink.distribution:picketlink-jbas7:jar:2.8.0.Beta1-SNAPSHOT 依赖项,我相信这是因为您之前没有安装它。

如我所见,jboss-picketlink-quickstarts 是一堆项目,它们有一个父项目 pom.xml,您可以在其中找到作为模块的项目:

<module>picketlink-federation-saml-idp-basic</module>

因此,您必须从父项目中克隆整个 jboss-picketlink-quickstarts 项目和 运行 mvn install

这将引导您将需要解析到本地 Maven 存储库中的所有依赖项(通常 ~/.m2/repository)。

试试吧,它会解决你的依赖。有时您必须使用 -U 调用 Maven 以强制 -SNAPSHOT 依赖关系。

希望对您有所帮助!