【问题标题】:Maven fails building CAS serverMaven 构建 CAS 服务器失败
【发布时间】:2012-11-19 12:13:48
【问题描述】:

我正在尝试实现 SSO 功能并从 http://www.jasig.org/cas/download 下载所有项目和 pom.xml。

所以,我得到了我的 maven 项目,然后在 eclipse 中我只是导入为现有的 maven 项目。

然后我将项目作为 MVN CLEAN 运行,但它没有运行并出现错误

[INFO] Scanning for projects...
Downloading: http://developer.ja-sig.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
Downloading: http://repo.maven.apache.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.jasig.cas:cas-server:3.5.0 (D:\CAS\Single Sign On\cas-server-3.5.0-release\cas-server-3.5.0\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.jasig.parent:jasig-parent:pom:21 from/to jasig-repository (http://developer.ja-sig.org/maven2): null to http://developer.ja-sig.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom and 'parent.relativePath' points at wrong local POM @ line 22, column 11: UnresolvedAddressException -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

有人说这是代理问题,所以我更改了settings.xml文件以将代理放置为

<proxy>
  <id>123</id>
  <active>true</active>
  <protocol>http</protocol>
  <username>abc.def@xyz.com</username>
  <password>xyz1233</password>
  <host>proxy.com</host>
  <port>80</port>
  <nonProxyHosts>google.com</nonProxyHosts>
</proxy>

还是没有运行,谁能指出错误?

【问题讨论】:

    标签: maven cas jasig


    【解决方案1】:

    为什么不从 Maven 中心下载 jasig-parent 呢?

    【讨论】:

      猜你喜欢
      • 2013-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多