如何从源代码构建 WSO2 4.X? [英] How to build WSO2 4.X from source?

查看:21
本文介绍了如何从源代码构建 WSO2 4.X?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在尝试从源代码构建 wso2(各种产品),但无济于事.

We have been trying to build wso2 (various products) from source to no avail.

我到处寻找信息(在 Google 的帮助下)并按照我们找到的一些说明进行了操作,但没有走运.

I have looked for information all over (with assistance from Google) and followed the few instructions we have found but without luck.

另一方面,我发现了各种帖子讨论这个过程以及它是如何容易出错的.

I have, on the other hand, found various posts discussing this process and how error prone it is due to this or that.

不要误会我的意思,WSO2 看起来是一个很棒的框架,可以在其中工作,但复杂/容易出错/庞大的构建过程并没有增强对项目的信心.

Don't get me wrong, WSO2 looks like an amazing framework to work within but confidence in the project is not boosted by the complicated/error prone/enormous build process.

这里有没有人对构建 4.x.x 版本的 carbon 有很好的描述/配方?

Does anyone here have a good description/recipes to build the 4.x.x version of carbon?

推荐答案

我真的不认为故意构建它是困难的.该产品非常庞大,有大量的开发人员在为它工作.大多数问题似乎都与开发人员的错误提交有关.我的理解是 WSO2 将改变开发过程以使其更加健壮(来源:Manoj 的评论).

I really don't think it is intentionally hard to build. The product is huge with tons on developers working on it. Most of the issues seem to be around erroneous commits by developers. My understanding is that WSO2 will be changing the development process to make it more robust (source: Manoj's Comment).

WSO2 产品系列非常棒且设计精良.它们可以构建,但您需要在此过程中坚持并解决问题.

The WSO2 set of products are awesome and well engineered. They can be built, but you will need to persist and resolve issues along the way.

我花了好几天的时间才在业余时间得到一个有效的构建.以下是要执行的任务的粗略顺序:

It took me quite a few days to get a working build in my spare time. Here is a rough sequence of tasks to perform:

1) 签出 4.0.0 分支:

1) Checkout the 4.0.0 branch:

svn co https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0
svn co https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0 
svn co https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0

有关代码库高级结构的更多信息,请参见此处:whatwso2 是轨道"、内核"和平台"吗?

For more information of the code base high level structure, see here: what is wso2 'orbit', 'kernel' and 'platform'?

2) 决定您需要构建哪个版本的产品 - 哪个版本要构建的补丁版本?

2) Decide which version of a product you need to build - Which version of patch-release to build?

3) 构建三个独立的代码库(构建主分支以及低于您所需版本的补丁发布版本).

3) Build the three separate code bases (build the main branch plus patch-release versions below your required version).

  • 构建轨道 4.0.0/然后构建轨道/patch-release/4.0.x
  • 构建内核 4.0.0/然后构建 kernel/patch-release/4.0.x
  • 构建平台4.0.0/然后构建platform/patch-release/4.0.x

构建注意事项:

  • 使用 Java 6(使用 Sun/Oracle JDK - 不是 OpenJDK)
  • 使用 Maven 3
  • 将 MAVEN_OPTS 设置为 -Xms512m -Xmx1024m -XX:MaxPermSize=1024m
  • 您可能需要使用以下 mvn 命令行:mvn clean install -Dmaven.test.skip=true

您将在此处找到构建的分发 zip 文件:ROOT/distribution/product/modules/distribution/target/(来源:WSO2 Carbon 4.1.x - 如何进行分发)

You will find the built distribution zip file here: ROOT/distribution/product/modules/distribution/target/ (source: WSO2 Carbon 4.1.x - how to make the distribution)

准备好在遇到问题时花时间追查和解决问题.大多数问题似乎是由于 Maven 依赖问题.使用谷歌,你通常可以找到答案.您还可以在 stackoverflow 上发布您需要帮助的任何问题.

Be prepared to put in the time to hunt down and fixing issues as you encounter them. Most issues seem to be due to maven dependency issues. Using google, you can usually find the answer. Also you post any issues you need help with on stackoverflow.

这篇关于如何从源代码构建 WSO2 4.X?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆