Am 04.08.2011 um 03:08 schrieb Marshall Schor:

> Do you use m2eclipse? (see http://uima.apache.org/one-time-setup.html  - the
> Eclipse part especially). I'm using the m2eclipse plugin at version 
> 0.12.1.20110112-1712.

I use the same version of m2eclipse also in Eclipse 3.6.2.

> In my Eclipse 3.6.2, the .classpath for uima-ep-jcasgen looks like:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
>    <classpathentry kind="src" output="target/classes" path="src/main/java"/>
>    <classpathentry excluding="**" kind="src" output="target/classes"
> path="src/main/resources"/>
>    <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
>    <classpathentry kind="con"
> path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
>    <classpathentry kind="output" path="target/classes"/>
> </classpath>

This looks like the .classpath file generated by m2eclipse which contains both, 
the Plug-in Dependencies Libaray and the Maven Dependencies Library. I prefer 
this classpath setup. When I run "mvn eclipse:eclipse" this is changed, 
however, so that links are generated in the plugin projects pointing to the 
jars in the .m2/repository folder and these are added as "References Libraries" 
to the build path. I have re-run "Maven->Update project configuration" to 
restore the m2eclipse style.

After a lot of trial and error, I came up with this set of steps to get UIMA 
imported into my Eclipse (ignoring mvn eclipse:eclipse at the moment):

* Turn off automatic building (saves some time while UIMA cannot properly build 
yet)
* Add "http://svn.apache.org/repos/asf/uima/uimaj"; as a SVN repository in 
Eclipse
* Check out "trunk" as a project (not as a Maven project)
* Select "Check out as a project in the workspace" and set the project name to 
"uimaj-root"
* Right-click on the "uimaj" folder within the "uimaj-root" project and select 
"Run As->Maven build...". 
  - Enter as goal "clean install". Enter the profile "!process-docbook" to 
disable docbook generation (unnecessary time any memory hog). 
  - Select "skip Tests". On the "Refresh" tab enable "Refresh resources upon 
completion" and select "the entire workspace". 
  - Now run (this may take a while). 
  - Check the progress by opening a Maven Console from the Eclipse Console View 
(small symbol with a "+" at the top right corner).
* Right-click on the "uimaj-root" project and select "Import->Existing Maven 
Project"
* After the import is complete, the launch configurations in uimaj-examples are 
dirty - revert the changes.
* Right-click on all UIMA projects except "uimaj-root" and select 
"Maven->Update project configuration" so the additional source files generated 
by Maven are added to the classpath.
* Now build the workspace. 

Now I am getting this error:

04.08.11 23:57:56 MESZ: Build errors for uimaj-ep-runtime; 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack-dependencies 
(unpackDependentJars) on project uimaj-ep-runtime: Error unpacking file: 
/Users/bluefire/UKP/Workspaces/dkpro-primary/uimaj-root/jVinci/target/classes 
to: 
/Users/bluefire/UKP/Workspaces/dkpro-primary/uimaj-root/uimaj-ep-runtime/target/classes
org.codehaus.plexus.archiver.ArchiverException: The source must not be a 
directory.
04.08.11 23:57:56 MESZ: [ERROR] An internal error occurred null

Do you also get this error with your m2eclipse-based setup, Marshal?

I didn't try yet to "run" the CAS Editor from within Eclipse. To really test 
that, I would need to set up another Eclipse which does not have the UIMA 
runtime bundle installed. Since CAS Editor and UIMA-J are currently one 
"project", I would expect/desire to be able to run the CAS Editor without 
previously installing the UIMA runtime plugin into the Eclipse instance.

-- Richard

-- 
------------------------------------------------------------------- 
Richard Eckart de Castilho
Technical Lead
Ubiquitous Knowledge Processing Lab 
FB 20 Computer Science Department      
Technische Universität Darmstadt 
Hochschulstr. 10, D-64289 Darmstadt, Germany 
phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117
[email protected] 
www.ukp.tu-darmstadt.de 
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
------------------------------------------------------------------- 




Reply via email to