1
votes

I like to customize to login and the admin console page of the WSO2-APIManager (v 1.9.1), APIM. I would also like to make/build the APIM into a microservice using a fat-jar, since I need to build from source.

This are my questions:

  1. Since I like to build the APIM from source. The documentation (http://docs.wso2.com/display/AM191/Building+from+Source) say that you have to download the "WSO2 Carbon Kernel" but how to I download the correct kernel version (http://wso2.com/products/carbon/release-matrix/) with git? There is no branch nor tag with kernel version 4.2.0.
  2. What's the purpose of downloading the kernel? Do I need the kernel to modify the login&admin pages?
  3. Do I need to compile, build and install the carbon kernel in my local maven repo before building the APIM?
  4. Cloning the repo (https ://github.com/wso2/product-apim) and trying to build (without building the kernel first) results in an error:

    [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]
    
1
You might be checkout the master branch. That should be why you have snapshots.Thusitha Thilina Dayaratne

1 Answers

0
votes

You don't need to download the carbon-kernel just to build the API Manager. Carbon-Kernel is the core module/platform for all of the WSO2 products.

Please follow the steps to build the API Manager from source code.

  1. carbon-apimgt repo has all the components related to API Manager which are reused by other WSO2 products. You have to checkout carbon-apimgt-v1.9.1 tag for API Manager 1.9.1

  2. Build this component repo using mvn clean install

  3. product-apim repo has the neccessary artifacts for the API Manager product. For API Manager 1.9.1, you have to checkout v1.9.1 tag

  4. Build the repo using mvn clean install