Build And Install gather-core
Checkout, test, then install to local repository:
1. make a workspace for all the projects
- mkdir workspace
- this could be used as an eclipse project workspace
1. checkout the project
- svn co http://code.dimagi.com/svn/Gather/gather/gather-core/trunk gather-core
- run tests
- mvn test
- may download some jar files to run the tests, then runs all the unit tests
- install jar into local repository
- mvn install
- re-runs all the tests
- builds a jar file, placed in "target" subdirectory
- copies the jar file to the local maven repository
Transcript...
$ mkdir workspace $ cd workspace $ svn co http://code.dimagi.com/svn/Gather/gather/gather-core/trunk gather-core A gather-core/.hgignore A gather-core/src A gather-core/src/test ... A gather-core/pom.xml Checked out revision 48. $ cd gather-core/ $ mvn test [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building GATHER Core Library [INFO] task-segment: [test] ... Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9 seconds [INFO] Finished at: Wed Jun 04 13:37:11 EDT 2008 [INFO] Final Memory: 5M/13M [INFO] ------------------------------------------------------------------------ $ mvn install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building GATHER Core Library [INFO] task-segment: [install]
