This wiki is locked. Future workgroup activity and specification development must take place at our new wiki. For more information, see this blog post about the new governance model and this post about changes to the website.

Building and Running SORI via the Eclipse IDE

These instructions explain how to get the source code for SORI from SORI's Subversion repository, import it in to Eclipse and run it via an Eclipse launcher that starts Jetty and Derby.

Prerequisites

These instructions assume you have these things already installed on your computer:

Checkout code from Subversion

Use the File->Import menu in Eclipse to start the Import, then choose the Checkout Projects from SVN option. (If you are wondering why we don't suggest using the "Check out Maven projects from SCM" option: it does not work. See this issue for https://issues.sonatype.org/browse/MNGECLIPSE-2596 details.)

sori-in-eclipse.key-0.jpg

Choose the Create new repository location option:

sori-in-eclipse.key-0.jpg

Enter the URI of the SORI trunk, which is https://oslc-tools.svn.sourceforge.net/svnroot/oslc-tools/sori/trunk

sori-in-eclipse.key-0.jpg

Select the top-level element in the source tree:

sori-in-eclipse.key-0.jpg

Choose the Checkout as project in the workspace option:

sori-in-eclipse.key-0.jpg

Once you are done you should see a top-level SORI project in Eclipse:

sori-in-eclipse.key-0.jpg

Import Maven projects

Use the File->Import menu again, and choose to Import Existing Maven Projects

sori-in-eclipse.key-0.jpg

Select all of the SORI projects:

sori-in-eclipse.key-0.jpg

Now you have all of the SORI projects, plus a top-level that we really do not need. You can delete the top-level project, but don't delete its contents:

sori-in-eclipse.key-0.jpg

When you imported the Maven projects, Eclipse may have already run the Maven install goal for each project.

If that did not happen, or if you've made some change in sori-core or sori-core-webapp, then you will need to run the Maven install goal yourself. To run the Maven install goal for a project you right-click on its pom.xml file, choose Run As and Maven Install. For example:

sori-in-eclipse.key-0.jpg

If you see an error in the sori-core project, that means you need to add a generated code folder to the project classpath:

sori-in-eclipse.key-0.jpg

Running SORI AM

To run SORI AM, use the Eclipse Run->RunConfigurations menu, create a new Maven Build launcher configured with:

  • Base directory: ${workplace_loc:/sori-am-webapp}
  • Goals: jetty:run-exploded

sori-in-eclipse.key-0.jpg

Next, you'll see Maven run in the console window and eventually the Jetty server start up.

sori-in-eclipse.key-0.jpg

Now, you can navigate to http://localhost:8080/sori-am to access SORI AM.

Topic attachments
I Attachment Action Size Date Who Comment
jpgjpg sori-in-eclipse.key-0.jpg manage 43.4 K 31 Jan 2011 - 14:59 DaveJohnson  
jpgjpg sori-in-eclipse.key-1.jpg manage 30.5 K 31 Jan 2011 - 14:59 DaveJohnson  
jpgjpg sori-in-eclipse.key-10.jpg manage 65.8 K 31 Jan 2011 - 15:04 DaveJohnson  
jpgjpg sori-in-eclipse.key-11.jpg manage 75.6 K 31 Jan 2011 - 15:06 DaveJohnson  
jpgjpg sori-in-eclipse.key-12.jpg manage 75.0 K 31 Jan 2011 - 15:33 DaveJohnson  
jpgjpg sori-in-eclipse.key-2.jpg manage 27.5 K 31 Jan 2011 - 15:00 DaveJohnson  
jpgjpg sori-in-eclipse.key-3.jpg manage 36.8 K 31 Jan 2011 - 15:00 DaveJohnson  
jpgjpg sori-in-eclipse.key-4.jpg manage 42.3 K 31 Jan 2011 - 15:00 DaveJohnson  
jpgjpg sori-in-eclipse.key-5.jpg manage 25.1 K 31 Jan 2011 - 15:01 DaveJohnson  
jpgjpg sori-in-eclipse.key-6.jpg manage 46.7 K 31 Jan 2011 - 15:01 DaveJohnson  
jpgjpg sori-in-eclipse.key-7.jpg manage 43.5 K 31 Jan 2011 - 15:01 DaveJohnson  
jpgjpg sori-in-eclipse.key-8.jpg manage 38.1 K 31 Jan 2011 - 15:01 DaveJohnson  
jpgjpg sori-in-eclipse.key-9.jpg manage 71.1 K 01 Feb 2011 - 14:14 DaveJohnson  
Edit | Attach | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 01 Feb 2011 - 14:19:10 - DaveJohnson
 
This site is powered by the TWiki collaboration platform Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use
Ideas, requests, problems regarding this site? Send feedback