This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
5 Replies Last post: Aug 27, 2007 5:16 PM by Michaela V  
Bronze 3 posts since
Aug 21, 2007
Currently Being Moderated

Aug 21, 2007 1:24 PM

Building Spark from source

Hi, I'm new to Spark; I tried to build it from the source code in svn, and I'm having trouble with importing all the non-jivesoftware packages. I (painfully) resolved the XMLPull API and XPP3 ones, but there are still a fair number of them left, some of which you have to BUY, e.g. install4j.com. Any tips on how to properly build from source? Or whether some of these external packages (like synthetica) can be bypassed (not interested in look-and-feel, for example). Thanks!!

Aznidin KeyContributor 508 posts since
Jul 5, 2006
Currently Being Moderated
Aug 21, 2007 3:11 PM in response to: Michaela V
Re: Building Spark from source

Hi Michaela, welcome to Ignite Realtime community B-).

 

 

 

What tool do you use to compile Spark? If you use Eclipse you might want to have a look at Openfire SVN + Eclipse 3.3 + Subversive Installation Guide. It is for Openfire, but perhaps it could also work with Spark. Your interest would probably begin at the "Create Openfire Project" topic.

 

Hope that helps.

Aznidin KeyContributor 508 posts since
Jul 5, 2006
Currently Being Moderated
Aug 23, 2007 3:08 PM in response to: Michaela V
Re: Building Spark from source

I suppose you have your auto-build feature on, and you're looking at Eclipse's "Problems" view and see all those plugin related errors. You need not worry about them. Those are part of Spark SVN directory structure and files that Eclipse include in the project when you created it. You can safely ignore them unless you plan to customize and build the plugins.

 

 

 

I think most of those libraries are not available for download. In fact, if you look at Spark's main build.xml there are no build task for them except for apple and growl in mac.build.plugin ant task. I don't think you want to run the task. Those plugins don't even exist as a part of official Spark distributions and "Available Plugins". Also you don't need to define -DsparkHome="$/target/spark".

 

Anyway, you inspired me to write a document for Spark! Thank you.

 

I went through and try your suggestion and it worked. I managed to debug and stop at the main() method in Startup.java. Well, there's actually one tiny problem. You actually need to drop i18n from spark::src::resources::i18n.

 

Spark SVN + Eclipse 3.3 + Subversive Installation Guide

Aznidin KeyContributor 508 posts since
Jul 5, 2006
Currently Being Moderated
Aug 21, 2007 4:53 PM in response to: Michaela V
Re: Building Spark from source

I tried building Spark using the guides from the doc just now, and it was successful on the first run! Admittedly, you need install4j to execute some of the ant tasks, but the good news is: you just need to worry about install4j, everything else is well taken care of.

 

 

 

FYI, I downloaded install4j from http://www.ej-technologies.com/download/install4j/files.php. If you just care about being able to build Spark, an evaluation license should suffice.

More Like This

  • Retrieving data ...