2015-11-03 47 views
1

我喜歡自定義登錄以及WSO2-APIManager(v 1.9.1),APIM的管理控制檯頁面。我還想使用fat-jar將APIM構建/構建成微服務,因爲我需要從源代碼構建。WSO2-APIM - 從源代碼構建(v1.9.1)

這是我的問題:

  1. 因爲我喜歡從源代碼編譯的APIM。文檔(http://docs.wso2.com/display/AM191/Building+from+Source)表示您必須下載「WSO2 Carbon Kernel」,但是如何使用git下載正確的內核版本(http://wso2.com/products/carbon/release-matrix/)?沒有內核版本4.2.0的分支和標籤。
  2. 下載內核的目的是什麼?我需要內核來修改登錄&管理頁面嗎?
  3. 在構建APIM之前,我需要編譯,構建並安裝我的本地maven回購中的碳內核嗎?
  4. 克隆回購協議(HTTPS://github.com/wso2/product-apim),並在錯誤試圖建立(而不需要先建立內核)結果:

    [INFO] Finished at: 2015-11-03T18:25:24+01:00 
    [INFO] Final Memory: 58M/980M 
    [INFO] ------------------------------------------------------------------------ 
    [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.4:p2-repo-gen (2-p2-repo-generation) on project am-p2-profile: Error occured when processing the Feature Artifact: org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:2.0.1-SNAPSHOT: 
    ERROR: Could not find artifact org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) 
    [ERROR] 
    [ERROR] Try downloading the file manually from the project website. 
    [ERROR] 
    [ERROR] Then, install it using the command: 
    [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon.apimgt -DartifactId=org.wso2.carbon.forum.server.feature -Dversion=2.0.1-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file 
    [ERROR] 
    [ERROR] Alternatively, if you host your own repository you can deploy the file there: 
    [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon.apimgt -DartifactId=org.wso2.carbon.forum.server.feature -Dversion=2.0.1-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 
    [ERROR] 
    [ERROR] 
    [ERROR] org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT 
    [ERROR] 
    [ERROR] from the specified remote repositories: 
    [ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true, snapshots=true), 
    [ERROR] wso2.releases (http://maven.wso2.org/nexus/content/repositories/releases/, releases=true, snapshots=true), 
    [ERROR] wso2.snapshots (http://maven.wso2.org/nexus/content/repositories/snapshots/, releases=false, snapshots=true), 
    [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) 
    [ERROR] -> [Help 1] 
    
+0

你可能會檢出master分支回購。這應該是你有快照的原因。 –

回答

0

你不不需要下載碳內核來構建API管理器。 Carbon-Kernel是所有WSO2產品的核心模塊/平臺。

請按照步驟從源代碼構建API管理器。

  1. carbon-apimgt回購具有通過其他WSO2產品再利用相關的API管理器中的所有組件。你必須籤carbon-apimgt-v1.9.1標籤的API管理器1.9.1

  2. 生成使用mvn clean install

  3. product-apim回購先後爲API Manager產品的neccessary文物此組件回購。對於API經理1.9.1,你必須籤v1.9.1標籤

  4. 生成使用mvn clean install

+0

在macosx上使用mvn 3.3.3和oracle java 1.7.55。 checkout carbon-apimnt(git clone ; git checkout -b carbonapimv191 carbon-apimgt-v1.9.1)和build(mvn clean install),但在Apache Synapse中有2次失敗測試 - 非阻塞HTTP/s傳輸.....失敗[01:21分]。結果: 失敗的測試: testCRLPathValidation(org.apache.synapse.transport.certificatevalidation.RevocationVerificationTest) testOCSPPathValidation(org.apache.synapse.transport.certificatevalidation.RevocationVerificationTest) 試驗運行:9,失敗:2,錯誤: 0,跳過:0 – carestra

+0

for product-apim我在[INFO] WSO2 API Manager失敗 - 基於產品後端測試模塊FAILURE [24.358 s]未能執行目標org.apache.maven.plugins:maven-surefire-plugin :2.18:對項目進行測試(默認測試)org.wso2.carbon.am.integration.backend.test:目標org.apache.maven.plugins的執行默認測試:maven-surefire-plugin:2.18:測試失敗:分叉進程出現錯誤... java.lang.RuntimeException:初始化測試環境時出錯...原因是:java.net.U nknownHostException:store.am.wso2。com – carestra

+0

@carestra,請使用maven版本3.0.5。 Maven最新版本存在一個已知問題,將在下一個版本中修復。 –