WSO2 Developer Guide Working with the Source Code 优快云记录学习第二篇

Working with the Source Code(使用源代码)

All WSO2 products are open-source, and is licensed under Apache 2.0. You can find the WSO2 Carbon Kernel SCM repository in GitHub, which is named Carbon Kernel. WSO2 invites interested parties to contribute their changes and suggestions into WSO2. We are following the GitHub Flow with the Fork & Pull model.(所有WSO2产品都是开源的,并在Apache 2.0下获得许可。 您可以在GitHub中找到WSO2 Carbon Kernel SCM存储库,它名为Carbon Kernel。 WSO2邀请感兴趣的各方将他们的变更和建议提交给WSO2。 我们正在使用Fork&Pull模型跟随GitHub Flow。)

Checking out the source (检查源码)
WSO2 Carbon Kernel contains the core libraries used by all products. To contribute, you first need to fork the Carbon Kernel repo. Then, create a feature branch, and work on the fix and commit. When you are done with the fixes, push the branch into your forked remote repository. From there, open a pull request to the WSO2 main repository where the WSO2 committers can start reviewing and merging the code. This is a quick summary of how the GitHub Flow with the Fork & Pull model works.(WSO2 Carbon Kernel包含所有产品使用的核心库。 要做出贡献,首先需要分配Carbon Kernel repo。 然后,创建一个功能分支,并处理修复和提交。 完成修复后,将分支推入分叉的远程存储库。 从那里,向WSO2主存储库打开一个pull请求,WSO2提交者可以在该存储库中开始查看和合并代码。 这是使用Fork&Pull模型的GitHub Flow如何工作的快速摘要。)

Building the product (构建产品)
Before you build:
Make sure that the build server has an active Internet connection to download dependencies while building.
Install Maven and JDK. See Installation Prerequisites for compatible versions.
Set the following environment variable:
MAVEN_OPTS=”-Xms1024m -Xmx2048m -XX:MaxPermSize=1024m” to avoid the Maven OutOfMemoryError.
(在您构建之前:
确保构建服务器具有活动的Internet连接以在构建时下载依赖项。
安装Maven和JDK。 请参阅兼容版本的安装先决条件。
设置以下环境变量:)

To build the product, navigate inside the carbon-kernel project and build and run the relevant Maven command.(要构建产品,在carbon-kernel项目中导航并构建并运行相关的Maven命令。)
For example, /carbon-kernel/在这里插入图片描述
Setting up your development environment(设置开发环境)
Before you edit the source code in your IDE, set up your development environment by running one of the following commands:(在IDE中编辑源代码之前,请通过运行以下命令之一来设置开发环境:)
在这里插入图片描述
Committing your changes (提交您的更改)
You do not need to be a committer to contribute to WSO2 projects. You can add your changes by sending a pull request to the Carbon project. Following the steps given below.(您不需要成为WSO2项目的提交者。 您可以通过向Carbon项目发送拉取请求来添加更改。 遵循以下步骤。)
Perform the required modification to the cloned source.
Send the fix as a pull request: https://help.github.com/articles/creating-a-pull-request
The pull will then be reviewed by the respective team, which owns the repository. If the change is accepted, it will be merged.
(对克隆的源执行所需的修改。
将修复程序作为拉取请求发送:https://help.github.com/articles/creating-a-pull-request
然后由拥有存储库的相应团队审查拉动。 如果接受更改,则会合并。)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值