2012-11-19 111 views
0

我試圖實現SSO功能並從http://www.jasig.org/cas/download下載了所有項目和pom.xml。Maven無法構建CAS服務器

所以,我得到了我的maven項目,然後在eclipse中,我只是導入爲現有的maven項目。

然後我可以將項目作爲MVN清潔,它不運行並獲得誤差

[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>[email protected].com</username> 
    <password>xyz1233</password> 
    <host>proxy.com</host> 
    <port>80</port> 
    <nonProxyHosts>google.com</nonProxyHosts> 
</proxy> 

還是不跑,有人可以指出錯誤嗎?

回答

0

爲什麼不從Maven中心下載jasig-parent?