uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: compile sandbox to use alchemyapyannotator
Date Mon, 29 Nov 2010 15:36:42 GMT
hmmm...

The error message seems to indicate that the symbol IStartup can't be found, and
the class file for org.eclipse.ui.plugin.AbstractUIPlugin can't be found.

I deleted from my local maven repo the org/eclipse/ui node, and then ran mvn
compile on uimaj-ep-debug.  It downloaded a bunch of stuff from the repos, and
then successfully compiled uimaj-ep-debug.  Then I went looking for where these
symbols were, and found them:

IStartup: in
org\eclipse\ui\org.eclipse.ui.workbench\3.2.1\org.eclipse.ui.workbench-3.2.1.jar
AbstractUIPlugin:
org\eclipse\ui\org.eclipse.ui.workbench\3.2.1\org.eclipse.ui.workbench-3.2.1.jar

Are these artifacts in your local maven repo, at the same version?

-Marshall Schor

On 11/29/2010 6:11 AM, Matteo Moci wrote:
> Hello,
> I am trying to compile uima from the svn: the main goal is to be able
> to use any component that resides in the sandbox, the
> AlchemyAPIAnnotator in particular.
> I know you are currently performing a redesign of the maven artifacts
> dependencies, but I think that my build issues are not related to it.
>
> These are the steps that Tommaso suggested me: they work for him but
> not for me, so I think I am missing something.
>
> 0. directory structure and checkout of latest uima sources from svn (i
> did an svn up each day for the reasons already mentioned)
> mkdir uima
> cd uima
> svn co http://svn.apache.org/repos/asf/uima/build/trunk/ uima-build/
> svn co http://svn.apache.org/repos/asf/uima/uimaj/trunk/ uimaj/
> svn co http://svn.apache.org/repos/asf/uima/sandbox/trunk sandbox/
>
> 1. building uima-build with a new empty maven repository
> cd uima-build/parent-pom
> mvn clean install -Dmaven.repo.local=/tmp/uima1
>
> 2. building uimaj with a new empty maven repository
> cd uimaj/aggregate-uimaj
> mvn clean install -Dmaven.repo.local=/tmp/uima1
>
> Following steps to build sandbox components are omitted, since after
> this command, I get an error:
> the build stops with an error on the eclipse dependencies.
>
> This is the command i used to execute just the failing target:
> mvn clean install -rf :uimaj-ep-debug -Dmaven.repo.local=/tmp/uima1 -e
>
> [INFO] Reactor Summary:
> [INFO]
> [INFO] UIMA Eclipse: uimaj-ep-debug ...................... FAILURE [9.295s]
> [INFO] UIMA Eclipse: uimaj-ep-jcasgen .................... SKIPPED
> [INFO] UIMA Eclipse: uimaj-ep-configurator: Descriptor Editor  SKIPPED
> [INFO] UIMA Eclipse: uimaj-ep-pear-packager .............. SKIPPED
> [INFO] UIMA Eclipse: uimaj-ep-cas-editor ................. SKIPPED
> [INFO] UIMA Eclipse: uimaj-ep-runtime .................... SKIPPED
> [INFO] UIMA Eclipse: uimaj-eclipse-feature-tools ......... SKIPPED
> [INFO] UIMA Eclipse: uimaj-eclipse-feature-runtime ....... SKIPPED
> [INFO] UIMA Aggregate: aggregate-uimaj-eclipse-plugins ... SKIPPED
> [INFO] Apache UIMA SDK Documentation - overview and setup  SKIPPED
> [INFO] Apache UIMA SDK Documentation - references ........ SKIPPED
> [INFO] Apache UIMA SDK Documentation - tools ............. SKIPPED
> [INFO] Apache UIMA SDK Documentation - tutorials and user's guides  SKIPPED
> [INFO] UIMA Aggregate POM aggregate-uimaj-docbooks: UIMA Base  SKIPPED
> [INFO] UIMA Maven Plugin PearPackagingMavenPlugin ........ SKIPPED
> [INFO] UIMA Base: uimaj-bootstrap: Bootstrap launcher .... SKIPPED
> [INFO] UIMA Aggregate: aggregate-uimaj: UIMA Base ........ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [...]
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
> (default-compile) on project uimaj-ep-debug: Compilation failure:
> Compilation failure:
> [ERROR] /Users/mox/Dati/Progetti/shared_libraries/uima/uimaj/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java:[25,21]
> cannot find symbol
> [ERROR] symbol  : class IStartup
> [ERROR] location: package org.eclipse.ui
> [ERROR]
> [ERROR] /Users/mox/Dati/Progetti/shared_libraries/uima/uimaj/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java:[31,51]
> cannot find symbol
> [ERROR] symbol: class IStartup
> [ERROR] public class DebugPlugin extends Plugin implements IStartup {
> [ERROR]
> [ERROR] /Users/mox/Dati/Progetti/shared_libraries/uima/uimaj/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java:[59,38]
> cannot access org.eclipse.ui.plugin.AbstractUIPlugin
> [ERROR] class file for org.eclipse.ui.plugin.AbstractUIPlugin not found
> [ERROR] String doneOnce =
> JDIDebugUIPlugin.getDefault().getPreferenceStore().getString(
> [ERROR]
> [ERROR] /Users/mox/Dati/Progetti/shared_libraries/uima/uimaj/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java:[63,33]
> cannot find symbol
> [ERROR] symbol  : method getPreferenceStore()
> [ERROR] location: class org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin
> [ERROR]
>
> In attachment you will find the entire debug log with -X.
>
> PS: Looking at the errors, i even tried to relaunch with the -U switch
> to force snapshots update, but no luck.
>
> Do I have to download them separately?
> Is there a way in which I can compile the sandbox using external
> artifact repositories?
>
> Thank you,
> Matteo

Mime
View raw message