我喜欢自定义登录和WSO2-APIManager(v 1.9.1),APIM的管理控制台页面。我还想使用fat-jar将APIM构建/构建到微服务中,因为我需要从源代码构建。
这是我的问题:
克隆repo(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 :(得分:0)
您不需要下载碳内核来构建API Manager。 Carbon-Kernel是所有WSO2产品的核心模块/平台。
请按照步骤从源代码构建API Manager。
carbon-apimgt repo拥有与API Manager相关的所有组件,这些组件可供其他WSO2产品重用。您必须查看API Manager 1.9.1
carbon-apimgt-v1.9.1
代码
使用mvn clean install
product-apim repo包含API Manager产品的必要工件。对于API Manager 1.9.1,您必须结帐v1.9.1
代码
使用mvn clean install