External Contribution to AS Embedded
alrubinger Jun 18, 2009 2:48 AMWith the jboss-bootstrap:2.0.0 series now integrated into Branch_5_x, we can start to entertain external contributions as we've got greater focus. I had some conversations over email with Josh Davis, who raised on the dev-list:
http://lists.jboss.org/pipermail/jboss-development/2009-June/014609.html
"Josh Davis" wrote:
I'm game for doing some development, or at least seeing if I can deploy my app and run unit tests with a snapshot build and report problems. I've checked out http://anonsvn.jboss.org/repos/jbossas/projects/embedded/trunk, but I think I need some help getting it to build. I'm not sure which Maven repository I'm supposed to use to get it to build. I'm guessing the instructions for the JBoss AS project don't apply?
You're coming in at a great time, though it might be a bit early if your goals are just to "get things working" for you. The first prototype of the new Embedded stuff I'd committed sometime last week, and it's the most ugly code I've ever put into svn.
Your SVN location is correct, however, we still need to massage this all into some working form. The general idea is:
* Bring in all of the AS Dependencies
* Start up AS by using the bootstrap APIs, and point it at a JBOSS_HOME installed somewhere on your system
* Watch everything break
This is because AS itself still makes a series of assumptions about the runtime environment, and I've been addressing these one-by-one. Not necessarily a wonderful place for a newbie to start (==frustrating AS legacy stuff).
A great place for you to begin would actually be from within the Bootstrap project:
https://jira.jboss.org/jira/browse/JBBOOT
http://anonsvn.jboss.org/repos/jbossas/projects/bootstrap/trunk/
This is the component responsible for obtaining all AS configuration, starting up Microcontainer, pointing it to the root bootstrap XML, and running. It's the thing that AS Main now calls to startup everything.
Would recommend you have a look at some of the open issues in JBBOOT JIRA. The whole project should be fully JavaDoc'd and tested; the unit tests for each projects are meant to be self-documenting as well. You can learn how to setup/start the server, fire lifecycle events, etc.
Real Embedded work that you may dive into is about 1-2 weeks away from now, I'd say. If you wanna dig into Bootstrap (which is a prereq for learning AS startup anyway), try for patches on some of the easier issues.
As to the Maven repo:
http://www.jboss.org/community/wiki/MavenSettings
It's the same repo as all of JBoss; http://repository.jboss.org/maven2.
These settings upon a fresh checkout of jboss-bootstrap should get you on your way.
S,
ALR