Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 65649 invoked from network); 29 Nov 2010 17:02:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 17:02:28 -0000 Received: (qmail 41699 invoked by uid 500); 29 Nov 2010 17:02:28 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 41544 invoked by uid 500); 29 Nov 2010 17:02:27 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 41521 invoked by uid 99); 29 Nov 2010 17:02:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 17:02:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mox601@gmail.com designates 209.85.161.175 as permitted sender) Received: from [209.85.161.175] (HELO mail-gx0-f175.google.com) (209.85.161.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 17:02:20 +0000 Received: by gxk20 with SMTP id 20so2210683gxk.6 for ; Mon, 29 Nov 2010 09:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=TwoxfXOopKCTVt6Q6KrOyOG5q5imAHTnBULEw+DOYeI=; b=vQdKoVKMKJdKrLX5kwxXt/9F7jJvzeb+8QYmdyw3f7jEUP+OjecLFtwLrAwXtt9RCN ZRvxzgN/SH0iBuXENRYk5HiE0dXHsvy7ailogHTOeN1Yf+r4v65AXjmv4HQYVNyajLCL EtloaTVotlMxHN85jTRuFUNIAeFUh6lBhObME= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=PNauh5Wg3rQOR85C2ERLE5t1HOrE/jBEm21MQmHtknSud/cJ3cVqFPk4J7heZrq6Rv YBcd3NoF3IdY9z2SXSpSb20Gh3fa77xhXL+bzjn93p4H2eOtyM5PbThI3dSHlC5J3D87 4Xz0miPf9/uioOGTx9mdmhjawBFPlGM/FoP1E= MIME-Version: 1.0 Received: by 10.204.79.9 with SMTP id n9mr5250919bkk.126.1291050116366; Mon, 29 Nov 2010 09:01:56 -0800 (PST) Received: by 10.204.119.197 with HTTP; Mon, 29 Nov 2010 09:01:56 -0800 (PST) Date: Mon, 29 Nov 2010 18:01:56 +0100 Message-ID: Subject: Re: compile sandbox to use AlchemyAPIAnnotator From: Matteo Moci To: user@uima.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hello Marshall, Tommaso helped me and the solution he found has the following steps, that I leave here as documentation for others. (anyway, I don't know if I solved the exact previous issue, but I just made it to build the AlchemyApiAnnotator). 0. svn directory structure checkout 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/ I had to modify a bit the source code: edit the file uima/uima-build/parent-pom/pom.xml find the section org.apache.uima parent-pom 2-SNAPSHOT pom then, change the version from 2-SNAPSHOT to 1-SNAPSHOT In the same file, scroll down to the section org.apache.uima PearPackagingMavenPlugin 2.3.0-incubating and change the version to 2.3.1-SNAPSHOT 1. build the uima-build with an empty maven local repository cd uima-build/parent-pom mvn clean install -Dmaven.repo.local=3D/tmp/uima1 2. build the uimaj-tests cd uimaj/uimaj-test-util mvn clean install -Dmaven.repo.local=3D/tmp/uima1 3. since uimaj-core depends from something that uimaj builds (i don't know what exactly): build uimaj and then uimaj-core cd uimaj/uimaj mvn clean install -Dmaven.repo.local=3D/tmp/uima1 cd uimaj/uimaj-core mvn clean install -Dmaven.repo.local=3D/tmp/uima1 4. build the PearPackagingMavenPlugin cd uimaj/PearPackagingMavenPlugin mvn clean install -Dmaven.repo.local=3D/tmp/uima1 5. compile alchemy-annotator first, i had to change the path to the parent-pom: maybe it will be useless tomorrow because of the major changes the developers are doing, but today for me it just worked: edit the pom.xml and find the section org.apache.uima parent-pom 1-SNAPSHOT change the relativePath to ../../uima-build/parent-pom since the sandbox is in a different directory than the parent-pom. Probably having uima-build subdirs and the sandbox components in the same folder could avoid it. I was a bit reluctant before doing that, since even the other poms of the sandbox components are all like that, but in the end i had luck with it! :) Maybe it is an issue you developers are going to fix? last, compile the alchemyapi: cd sandbox/AlchemyAPIAnnotator mvn clean install -Dmaven.repo.local=3D/tmp/uima1 now take a deep breath... Hopefully it will help someone. I received all the insights from Tommaso, that i thank once again for being so kind. I just tweaked things here and there and I added the fifth point. Bye, Matteo On Mon, Nov 29, 2010 at 4:36 PM, Marshall Schor wrote: > hmmm... > > The error message seems to indicate that the symbol IStartup can't be fou= nd, 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. =A0It downloaded a bunch of stuff from the rep= os, and > then successfully compiled uimaj-ep-debug. =A0Then I went looking for whe= re 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=3D/tmp/uima1 >> >> 2. building uimaj with a new empty maven repository >> cd uimaj/aggregate-uimaj >> mvn clean install -Dmaven.repo.local=3D/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=3D/tmp/uima1 -e >> >> [INFO] Reactor Summary: >> [INFO] >> [INFO] UIMA Eclipse: uimaj-ep-debug ...................... FAILURE [9.29= 5s] >> [INFO] UIMA Eclipse: uimaj-ep-jcasgen .................... SKIPPED >> [INFO] UIMA Eclipse: uimaj-ep-configurator: Descriptor Editor =A0SKIPPED >> [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 =A0SKIPPED >> [INFO] Apache UIMA SDK Documentation - references ........ SKIPPED >> [INFO] Apache UIMA SDK Documentation - tools ............. SKIPPED >> [INFO] Apache UIMA SDK Documentation - tutorials and user's guides =A0SK= IPPED >> [INFO] UIMA Aggregate POM aggregate-uimaj-docbooks: UIMA Base =A0SKIPPED >> [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-de= bug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java:[25,21] >> cannot find symbol >> [ERROR] symbol =A0: class IStartup >> [ERROR] location: package org.eclipse.ui >> [ERROR] >> [ERROR] /Users/mox/Dati/Progetti/shared_libraries/uima/uimaj/uimaj-ep-de= bug/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-de= bug/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 =3D >> JDIDebugUIPlugin.getDefault().getPreferenceStore().getString( >> [ERROR] >> [ERROR] /Users/mox/Dati/Progetti/shared_libraries/uima/uimaj/uimaj-ep-de= bug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java:[63,33] >> cannot find symbol >> [ERROR] symbol =A0: method getPreferenceStore() >> [ERROR] location: class org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlug= in >> [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 >