Skip to main content



      Home
Home » Eclipse Projects » Virgo » Build Virgo Kernel 3.0.0.M04 in IDE
Build Virgo Kernel 3.0.0.M04 in IDE [message #672291] Fri, 20 May 2011 10:41 Go to next message
Eclipse UserFriend
Hi Everyone:
I built Virgo Kernel 3.0.0.M04 from command line console. Did anyone know how to set up an IDE ( Eclipsed, SpringTool Suit, Netbeans, Intellij , etc) to build Virgo Kernel from Source Codes?
Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #673362 is a reply to message #672291] Mon, 23 May 2011 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

We use STS/Eclipse IDE with the dm Server tools. I'd just go and download the latest STS, it's free. Simply build it on the command line and then import all the projects in to Eclipse. Each bundle has Eclipse project info checked in with them. All you need to do in Eclipse is create a variable to point to the ivy cache that the build creates and then all the projects should resolve with a little project refreshing/cleaning etc...

Chris.
Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #674692 is a reply to message #673362] Fri, 27 May 2011 18:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christopher:
I followed up your suggestions on steps of importing Virgo Kernel 3.0.0.M05 into Eclipse Helios 3.6.2 Java Edition. Here is a link from Spring team about how to set up a similar Eclipse IDE environment -http://webcache.googleusercontent.com/search?q=cache:RqasFZ1m9QUJ:blog.springsource.com/2009/03/03/building-spring-3/+Eclipse+create+a+variable+to+point+to+the+ivy+cache&cd=4&hl=en&ct=clnk&gl=us&client=firefox-a&source=www.google.com

Here is my settings:
1. After building the Virgo Kernel by running "ant -Dci.build=true clean clean-integration test", I configured two classpath variables-KERNEL_IVY_CACHE and IVY_CACHE, both of them were linked to same folder see below link
http://members.cox.net/jbuilder/k1.JPG
2: Creating missed folders as Eclipse IDE problems panel complained about, after importing all projects Here is the link
http://members.cox.net/jbuilder/k2.JPG
3. Finally, Eclipse IDE seemed resolving all build path issues as this http://members.cox.net/jbuilder/k3.JPG

Suggestions on virgo kernel source codes folder structures:

In order to eliminate the manual creations on those missed folders which were complained by Eclipse IDE, could your guys add those folder in there? I did a testing by re-run "ant -Dci.build=true clean clean-integration test" after adding those folder, the build goes fine.
Just my observation on how to make virgo kernel to be Eclipse IDE friendly.

Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #677057 is a reply to message #674692] Tue, 07 June 2011 08:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Sorry for the slow response, we've had a few people out the office.

You only need the KERNEL_IVY_CACHE var, the other one isn't needed. The missing folders are from projects that produce test applications and aren't part of the Kernel source code proper. You should only need to import projects starting with org.eclipse.virgo in their name. Don't worry about there being a few warnings, the code is in good shape but there are a few things we simply can't remove due to technicalities of the Java language. The missing folders is a fair comment, I have raised a bug to get them fixed. (https://bugs.eclipse.org/bugs/show_bug.cgi?id=348545)

Thanks,
Chris.

[Updated on: Tue, 07 June 2011 08:24] by Moderator

Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #682110 is a reply to message #677057] Fri, 10 June 2011 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Said bug is now fixed. The Eclipse projects now all come in with no missing folders etc..

Thanks for pointing it out.
Chris.
Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #682398 is a reply to message #682110] Fri, 10 June 2011 21:34 Go to previous messageGo to next message
Eclipse UserFriend
Chris:
This thread got almost 5000 views. Hope the number is accurate since it might indicate lots of developers are learning virgo from source codes.

[Updated on: Fri, 10 June 2011 21:36] by Moderator

Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #808109 is a reply to message #682398] Mon, 27 February 2012 07:17 Go to previous message
Eclipse UserFriend
I've added some instructions to the Virgo wiki for posterity. Please let me know if I missed anything (or add it yourself).

[Updated on: Mon, 27 February 2012 07:18] by Moderator

Previous Topic:Unable to build the Greenpages sample
Next Topic:What's the difference between Virgo Tomcat and Virgo Jetty
Goto Forum:
  


Current Time: Mon May 12 18:35:04 EDT 2025

Powered by FUDForum. Page generated in 0.03538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top