我喜歡自定義登錄以及WSO2-APIManager(v 1.9.1),APIM的管理控制檯頁面。我還想使用fat-jar將APIM構建/構建成微服務,因爲我需要從源代碼構建。WSO2-APIM - 從源代碼構建(v1.9.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的分支和標籤。
- 下載內核的目的是什麼?我需要內核來修改登錄&管理頁面嗎?
- 在構建APIM之前,我需要編譯,構建並安裝我的本地maven回購中的碳內核嗎?
克隆回購協議(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]
你可能會檢出master分支回購。這應該是你有快照的原因。 –