2015-11-03 152 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最新版本存在一个已知问题,将在下一个版本中修复。 –