| UIMA > Index > Extracting from SVN components into Eclipse Projects |
Note: the website is under .../incubator/uima/site
Note: for readonly access, you can use http: instead of https:
This will create an Eclipse simple project.
In addition to the above URL, there are additional projects in Apache UIMA in the "sandbox". You can check those projects out into the same (or different - it's up to you) workspace. The sandbox projects are located in
http://svn.apache.org/repos/asf/incubator/uima/sandbox/trunk
First be sure you've told Eclipse about Maven. After installing Maven, open a command window and say
mvn -Declipse.workspace=<eclipse workspace dir> eclipse:add-maven-repo
This you only need to do once (per Eclipse workspace you're using) - it adds a maven repository to your machine (On Windows, under documents & settings / .m2 / repository), and sets up an Eclipse Java Build Path variable to reference it.
To convert this to a Java project with the right class path dependencies (which are computed from the maven pom):
Do this for Java projects, including the eclipse plugins. It's not needed for the docbook / website projects.
Follow these steps for the first setup. It will create a working environment without a sophisticated configuration.
| Check your Maven installation Maven needs to be setup properly! Unfortunately the documentation is pretty weak and not consistent here. mvn install:install-file -DgroupId=javax.activation -DartifactId=activation \ -Dversion=1.0.2 -Dpackaging=jar -Dfile=/path/to/file (Note: even if the activation jar has a higher version, refer to version 1.0.2!!!) #!/bin/bash
# filename and location: ˜/.bash_login
export M2_HOME=/usr/local/maven
export PATH=${M2_HOME}/bin:$PATH
On Windows, right click on "My Computer" select "Properties". Change to the "Advanced" tab and click on "Environment Variables". Create a new variable called M2_HOME for the Maven home directory and add the following entry to the end of the PATH variable: ;%M2_HOME%\bin |
prompt$ mvn --version Maven version: 2.0.4
... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] Apache UIMA Java SDK .................................. SUCCESS [4.410s] [INFO] Apache UIMA Utility Classes For JUnit Tests ........... SUCCESS [0.511s] [INFO] Apache UIMA Java Framework Core ....................... SUCCESS [2.981s] [INFO] Java Vinci Library .................................... SUCCESS [0.054s] [INFO] Apache UIMA Java Vinci Adapter ........................ SUCCESS [0.087s] [INFO] Apache UIMA Java Collection Processing Engine ......... SUCCESS [0.063s] [INFO] Apache UIMA Java Framework - Document Annotation ...... SUCCESS [0.067s] [INFO] Apache UIMA Java SDK Tools ............................ SUCCESS [0.091s] [INFO] Apache UIMA Java SDK Examples ......................... SUCCESS [0.079s] [INFO] Apache UIMA Java SOAP Adapter ......................... SUCCESS [4.458s] [INFO] Apache UIMA Utility Classes For Component JUnit Tests . SUCCESS [0.045s] [INFO] Apache UIMA Debug Eclipse Plugin ...................... SUCCESS [36.225s] [INFO] Apache UIMA JCasGen Eclipse Plugin .................... SUCCESS [4.314s] [INFO] Apache UIMA Configurator Eclipse Plugin ............... SUCCESS [19.509s] [INFO] Apache UIMA PEAR Packager Eclipse Plugin .............. SUCCESS [0.396s] [INFO] Apache UIMA Runtime Plugin ............................ SUCCESS [0.006s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 14 seconds [INFO] Finished at: Mon Jan 15 20:21:02 EST 2007 [INFO] Final Memory: 7M/17M [INFO] ------------------------------------------------------------------------
| Note: You should not have to do this, if you've set up Eclipse using the Maven command |
No errors should now exist in the uima workspace