2013-10-04 44 views
0

當前我想在我的本地環境中安裝WSO2身份服務器。我嘗試了WSO2 4.5的開發版本。但得到構建錯誤。我的機器中準備好了JDK和Apache Maven。我是否需要其他任何東西?或者有人可以提供鏈接,我可以用源文件下載確切的可構建版本。wso2開發者版本4.5

+0

你是什麼意思的開發版本? –

+0

嗨,我的意思是我試圖下載SVN 4.1.0版本。無法構建它,並且我沒有收到任何源文件。 –

回答

0

沒有這樣的開發者版本。您可以從這裏下載二進制分發產品[1]。最新版本是4.5.0。如果你想下載源碼。你需要SVN CO所有的碳平臺。由於Identity Server是Carbon平臺的一個產品。身份認證服務器由Carbon內核和碳平臺中的一些組件組成。請檢查此[2]看,如何建立碳平臺

[1] http://wso2.com/products/identity-server/ [2] http://docs.wso2.org/display/Carbon420/Building+from+Source

+0

非常感謝Asela。我下載了相同的。我嘗試了相同的步驟,但構建內核4.2.0時出現構建錯誤。請參閱以下錯誤..錯誤注入:org.apache.maven.reporting.exec.DefaultMavenReportExecutor java.lang.NoClassDefFoundError:org/sonatype/aether/graph/DependencyFilter at java.lang.Class.getDeclaredConstructors0(Native Method) 在java.lang。Class.privateGetDeclaredConstructors(Class.java:2413) –

+0

什麼是您使用的Maven版本?你可以嘗試使用maven 3.0.X嗎?這似乎是與Maven 3.1.X有一些問題。 https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound – Asela

+0

基本上你不能使用maven 3.1.X構建身份服務器源碼你必須使用maven 3.0.X(我已經使用maven 3.0.4),它是工作正常...請嘗試移動到maven 3.0.X,看看你是否得到這個錯誤? – Asela

0

基本上WSO2的Identity Server是在碳平臺只有一個產品。整個平臺的源代碼可以在這裏找到[1]。你已經構建了所有平臺的來源,這是正確的。因爲彼此之間有依賴關係。碳平臺由許多功能組成(一組OSGI組件)。例如,XACML(我們稱之爲「授權」)是WSO2 Carbon平臺的一個特性,它隨WSO2 Identity Server一起提供。像這樣,有幾個功能,比如SSO,OAuth,WS-Trust等等,這些功能都與Identity Server一起提供。因此;假設您只對XACML功能感興趣,您可以查看XACML功能的源代碼。 XACML功能是一組四個OSGI組件,如下所示...

org.wso2.carbon.identity.entitlement [2] - >這是核心組件。
org.wso2.carbon.identity.entitlement.ui [3] - >這包含管理控制檯UI,可以在您登錄到服務器後看到。 org.wso2.carbon.identity.entitlement.common [4] - >這包含核心和用戶界面的一些常見功能 org.wso2.carbon.identity.entitlement.stub [5] - >這包含自動生成存根類。這有助於UI組件調用後端服務。

就像那樣,你可以找到你感興趣的功能的來源。我們無法從一個地方找到WSO2 Identity Sever的產品來源。然而,大多數來源都在/平臺/組件/身份

另外,說你想創建一個只有XACML功能的產品,你也可以這樣做。這裏您只想將XACML功能安裝到Carbon核心產品。與WSO2 Identity Server相同,通過向Carbon核心產品安裝多個功能來構建。

[1]​​ [2] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.entitlement/4.2.0/ [3] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.entitlement.ui/4.2.0/ [4] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.entitlement.common/4.2.0/ [5] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/service-stubs/org.wso2.carbon.identity.entitlement.stub/4.2.0/