Building and Running SORI via Maven command-line
These steps lead you through the process of getting the SORI code, building it and running it via command-line.
Prerequisites
First, verify that you have the necessary prerequisites. You will need the following things on your computer to build and run SORI:
- Java JDK 1.6 - if you're a Java developer, you probably already have this on your machine
- Subversion client 1.6 - Subversion client so you can checkout the code
- Maven 3 - Maven build system to build and run the code
Get the SORI source code
The best way to get the code is via the SVN client because the Maven m2eclipse plugin's SCM import feature is broken, see also:
https://issues.sonatype.org/browse/MNGECLIPSE-2596.
To get the code, do the following:
Once that operation is complete, you have everything you need to build and run SORI.
Build & run via command-line
Now, we're just about ready to build and run.
Before we start let's verify that you have Maven 3 installed on your computer and in your path. Enter the Maven comamnd 'mvn -v' to verify that Maven is indeed installed and you should see something like this:
$ mvn -v
Apache Maven 3.0 (r1004208; 2010-10-04 07:50:56-0400)
Java version: 1.6.0_22
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.6" arch: "x86_64" Family: "mac" $
If that's what you see, then you are ready to run. Otherwise, you might want to refer to the Maven install docs to see what went wrong.
Build the sori-core component
First, we must build the SORI Core jar, which is used by the SORI webapps:
cd sori-core
mvn install
cd ..
Run SORI AM
Now we are ready to build & run. To run the SORI AM webpp:
cd sori-am-webapp
mvn jetty:run-exploded
Once you've done that you can navigate to
http://localhost:8080/sori-am to use the SORI AM implementation.
You can kill it with CNTRL-C.
Run SORI CM
You should kill SORI AM before you start this because, by default both use the same port number, i.e. 8080
To build & run the SORI CM webapp:
cd sori-cm-webapp
mvn jetty:run
Once you've done that you can navigate to
http://localhost:8080/sori-cm to use the SORI CM implementation.
You can kill it with CNTRL-C.