Maven无法构建CAS服务器

时间:2012-11-19 12:13:49

标签: maven cas jasig

我正在尝试实施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>

仍然没有运行,有人可以指出错误吗?

1 个答案:

答案 0 :(得分:0)

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