Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has anyone managed to build WSO2 from source?

Tags:

build

wso2

Has anyone here managed to build WSO2 (orbit/kernel/platform 4.0.0) from source?

After having spent three days, more or less, trying to build this project from source I'm about to give up.

There are people here trying to help and I do appreciate that. Event when following their advise the build process is cumbersome and ultimately fails. Wrong POM references, broken tests and strange configuration are among the things we have encountered.

So, before trying harder it would be great to know if anyone has succeeded.

I have a particularly hard time believing that new WSO2 developers need to deal with this before they can start contributing and do admit that my cynical nature leaves me repeatedly thinking that this can be no accident.

The WSO2 framework/stack looks awesome in so many ways but this experience is almost enough to turn elsewhere and is more frustrating than anything I have ever encountered.

If you feel that this criticism is unfair then I apologize, there should be no reason to censor this entry as was the case with my last question on the same topic.

like image 806
Acmeguy Avatar asked Jul 31 '13 00:07

Acmeguy


2 Answers

First of all, I really appreciate your interest in WSO2 products. There are many questions regarding building from source in StackOverflow.

I guess you already know about orbit, kernel and platform. The SVN is structured in this way as WSO2 products are built from a single platform. Basically a WSO2 Product is "Carbon Kernel + Set of features"

You are trying to build a "released branch", so there should not be any build failures. We make sure that there aren't any build failures before releasing a branch. Usually there are multiple products released from a branch.

You can see the Release Matrix and figure out the product version and the platform version.

My personal opinion is that you should not start building the whole platform, especially when the particular branch is released. The released artifacts are already in the WSO2 Maven Repository. So, it is not really necessary to build unless you modify the code.

If you need to improve an existing component, you can just checkout the relevant component and do the modification. Each WSO2 Product has a built-in patch applying system. You can just build the jar and apply it as patch to product.

I would advice you to subscribe to WSO2 mailing lists and post your questions there (May be to dev@). Just let us know how you would like to contribute and we would be more than happy to guide you.

I can understand the frustration of you and I do not feel that is not fair!

I would like to hear from you again.

Thanks!

like image 62
Isuru Perera Avatar answered Sep 22 '22 08:09

Isuru Perera


I succeeded building, but it took me quite a few days. I think that improving the build process (and documentation) is a must for WSO2 to attract new developers. During my frustration, I created some JIRA's that reflect this:

  • https://wso2.org/jira/browse/CARBON-14121
  • https://wso2.org/jira/browse/DOCUMENTATION-67

Like you I was massively frustrated by the whole build and support process. After the lengthy pain getting to my first successful build, I have put WSO2 stuff to the side for a while to focus on some other projects. I'm not sure I'm ready to go back and attempt to build everything from scratch just yet!!!

I think the main problem that us non-WSO2 developers have is that there isn't an experienced developer sitting next to us to guide you through the issues. Stackoverflow doesn't encourage this sort of community. I think there is a need for a WSO2 user group - where frustrated new (and experienced) developers can help each other out, or at least give each other moral support.

One thing that may help you is to focus on a smaller chunk of WSO2. AXIS2, Synapse or Carbon are all projects that are a much smaller bite size, which probably makes sense mastering for a WSO2 newbie developer. Also, there is an exciting new project donated to Apache by WSO2 - Apache Stratos. This project may help you get on the ladder.

Finally, coming back to your frustration, and cynicism towards WSO2. As mentioned above, I had similar strong feelings during my first build. As time has moved on, I believe WSO2 is a completely transparent company. I just think their community model isn't right yet. This post touches on some of the issues.

like image 45
Chris Snow Avatar answered Sep 22 '22 08:09

Chris Snow