You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Richard Eckart de Castilho <ec...@tk.informatik.tu-darmstadt.de> on 2011/08/06 03:06:17 UTC

uima-ep-runtime vs. OSGi metadata in uimaj-core?

I am still trying to get an UIMA workspace set up in Eclipse with m2eclipse and still fail - mostly. I feel a bit odd here about why it's so non-trivial to get a proper Eclipse workspace for UIMA with m2eclipse. Probably I'm just plain stubborn because I believe that I should not have to run external tools (like mvn eclipse:eclipse or even clean install) when developing software in an IDE... I mean it should be an "integrated development environment", right?

Anyway...

One problem seems to be the uimaj-ep-runtime module. It uses a "unpack-depencendies" goal which throws an error in Eclipse 3.6.2 and which is completely unsupported in Eclipse 3.7 (m2e).

I finally managed to "run" the uima-ep-cas-editor" module from Eclispe (3.7), but only after I had turned uimaj-core itself into an Eclipse plugin project by adding the "marker-file-identifying-eclipse-plugin", adding a "plugin.xml", and adding a minimal maven-bundle-plugin configuration in the POM.

I wonder, is there a special reason to unpack and re-package the core UIMA JARs into a single "UIMA Runtime" plugin? Since OSGi bundles are just like regular jars plus a bit of meta-data, how about not having uimaj-ep-runtime and add the OSGi metadata directly to uimaj-core and friends?

I also did disable the uima-helper-maven-plugin because it produced error markers all over the place with m2e(lipse) from Eclipse 3.7.

Also m2e produces a number of Maven-related warnings about managed dependency versions being overridden in modules and superfluous groupIds and versions.

Cheers,

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
eckartde@tk.informatik.tu-darmstadt.de 
www.ukp.tu-darmstadt.de 
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
------------------------------------------------------------------- 





Re: uima-ep-runtime vs. OSGi metadata in uimaj-core?

Posted by Marshall Schor <ms...@schor.com>.
I tried using Eclipse 3.7, with the m2e plugin from the main Eclipse update site.

This is a different plugin than m2eclipse at 0.12.xxx.  It does quite a few
things differently, it seems, and we'll need to investigate.

It installed some other plugins, like one call m2e connector for
build-helper-maven-plugin, and "Tycho Project Configurators".  I don't know what
these do.

I then tried a brand-new unzipped Eclipse 3.7, and installed into it m2eclipse
from http://m2eclipse.sonatype.org/installing-m2eclipse.html (not m2e) .  With
that version, I had the same behavior as 3.6.2 - after importing, it compiled
everything except uimaj-core, and it compiled that after I did (right-click on
uimaj-core) -Maven -Update project configuration.

So - I think until we figure this out, we have to say that the m2e plugin
doesn't do the job - continue to use m2eclipse from that url above, in 3.7.

-Marshall


On 8/5/2011 9:06 PM, Richard Eckart de Castilho wrote:
> I am still trying to get an UIMA workspace set up in Eclipse with m2eclipse and still fail - mostly. I feel a bit odd here about why it's so non-trivial to get a proper Eclipse workspace for UIMA with m2eclipse. Probably I'm just plain stubborn because I believe that I should not have to run external tools (like mvn eclipse:eclipse or even clean install) when developing software in an IDE... I mean it should be an "integrated development environment", right?
>
> Anyway...
>
> One problem seems to be the uimaj-ep-runtime module. It uses a "unpack-depencendies" goal which throws an error in Eclipse 3.6.2 and which is completely unsupported in Eclipse 3.7 (m2e).
>
> I finally managed to "run" the uima-ep-cas-editor" module from Eclispe (3.7), but only after I had turned uimaj-core itself into an Eclipse plugin project by adding the "marker-file-identifying-eclipse-plugin", adding a "plugin.xml", and adding a minimal maven-bundle-plugin configuration in the POM.
>
> I wonder, is there a special reason to unpack and re-package the core UIMA JARs into a single "UIMA Runtime" plugin? Since OSGi bundles are just like regular jars plus a bit of meta-data, how about not having uimaj-ep-runtime and add the OSGi metadata directly to uimaj-core and friends?
>
> I also did disable the uima-helper-maven-plugin because it produced error markers all over the place with m2e(lipse) from Eclipse 3.7.
>
> Also m2e produces a number of Maven-related warnings about managed dependency versions being overridden in modules and superfluous groupIds and versions.
>
> Cheers,
>
> Richard
>

Re: uima-ep-runtime vs. OSGi metadata in uimaj-core?

Posted by Marshall Schor <ms...@schor.com>.

On 8/5/2011 9:06 PM, Richard Eckart de Castilho wrote:
> I am still trying to get an UIMA workspace set up in Eclipse with m2eclipse and still fail - mostly. I feel a bit odd here about why it's so non-trivial to get a proper Eclipse workspace for UIMA with m2eclipse. Probably I'm just plain stubborn because I believe that I should not have to run external tools (like mvn eclipse:eclipse or even clean install) when developing software in an IDE... I mean it should be an "integrated development environment", right?

Right.  Something very strange is happening.  See my earlier post. 

I started with a brand new, freshly unzipped version of Eclipse 3.6.2, installed
just 2 plugins (Subversion and m2Eclipse), and then got things going by

1) checking out of SVN (using a svn command line client, using the command:
svn checkout http://svn.apache.org/repos/asf/uima/uimaj/trunk
myLocalWorkingDirectory
2) in Eclipse, using File -> Import -> Maven -> Existing Maven projects, and
imported things.


>
> Anyway...
>
> One problem seems to be the uimaj-ep-runtime module. It uses a "unpack-depencendies" goal which throws an error in Eclipse 3.6.2 and which is completely unsupported in Eclipse 3.7 (m2e).
>
> I finally managed to "run" the uima-ep-cas-editor" module from Eclispe (3.7), but only after I had turned uimaj-core itself into an Eclipse plugin project by adding the "marker-file-identifying-eclipse-plugin", adding a "plugin.xml", and adding a minimal maven-bundle-plugin configuration in the POM.
>
> I wonder, is there a special reason to unpack and re-package the core UIMA JARs into a single "UIMA Runtime" plugin? Since OSGi bundles are just like regular jars plus a bit of meta-data, how about not having uimaj-ep-runtime and add the OSGi metadata directly to uimaj-core and friends?
>
> I also did disable the uima-helper-maven-plugin because it produced error markers all over the place with m2e(lipse) from Eclipse 3.7.
>
> Also m2e produces a number of Maven-related warnings about managed dependency versions being overridden in modules and superfluous groupIds and versions.

Some of these may be issues with 3.7 - I haven't tried that yet.
-Marshall
>
> Cheers,
>
> Richard
>