Thanks Richard for the response.  
 
Okay, I did the adds-ons trunk install for regex annotator via maven 
import:https://svn.apache.org/repos/asf/uima/addons/trunk/uima-addons-parent/ 
then got the following error:
 Project build error: Non-resolvable parent POM: Could not find artifact 
org.apache.uima:uima-addons-parent:pom:2.3.2-SNAPSHOT and 'parent.relativePath' 
points at wrong local POM
 
 However, this above error was resolved by installing the uima-addon-parent 
project from .../addons/trunk..... The plugin for "m2e connector for xmlbeans" 
I already had installed but I didn't have the "Tycho Project Configurators" so 
I just added it for good measure.   After executing the CVD, I got the same 
error with trunk as I got with tag version.-------------------------Caused by: 
java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class 
with name 
schemaorg_apache_xmlbeans.system.s4DE0C4BDB0BE7CAF27A97C2453FE4641.TypeSystemHolder.
 Make sure the generated binary files are on the classpath. Caused by: 
java.lang.ClassNotFoundException: 
schemaorg_apache_xmlbeans.system.s4DE0C4BDB0BE7CAF27A97C2453FE4641.TypeSystemHolder
 ----------------------  You mentioned that you got no errors, did you just 
mean from the build?  I got no build errors as well but wondering have you 
tried executing the CVD tool and running the regexannotator descriptor?  Did it 
work for you? Maybe this isn't a problem with eclipse complaining about 
unmapped maven plugins after all but really a problem with the plugins not 
working even after they are mapped.  There appears to be a problem with maven 
xmlbeans plugin based on some research I've done.   Please see link 
below:http://stackoverflow.com/questions/8518301/error-when-using-xmlbeans-generated-classes
 From first paragraph: "I've generated classes with XMLBeans from an xsd file 
and packed them in a jar file. then I've added that jar to the project 
classpath in eclipse and everything compiles and runs fine. I built a stand 
alone jar file from my project with Maven and again the build is successful, 
but when i try running it i get this error:"   Paula 's comment: the error is 
essentially what I'm getting. Caused by: java.lang.ClassNotFoundException: 
schemaorg_apache_xmlbeans.system.s8
B21CFFFCFED0B2438C2585C61F113F7.TypeSystemHolder   Could I receive the jar 
consisting of the generated classes with XMLBeans from an xsd file? I want to 
manually add to project classpath in eclipse and test it out.   Per what the 
person stated in the link above, it should work.   I really hope you guys 
provide me the jar file or at the very least provide me with instructions on 
how to undo the generated classes in the trunk file for the xmlbeans so I can 
recreate myself and then build the jar myself to add to classpath.   I know how 
to build the jar file just would need to start with a clean project with no 
generated classes.   If I can just test this out I'll know that I did all I 
could do to try to resolve.    Regards,Paula
> Subject: Re: Eclipse m2e complains about unmapped maven plugins
> From: [email protected]
> Date: Fri, 1 Nov 2013 10:23:44 +0100
> To: [email protected]
> 
> You might consider giving current add-ons trunk version a spin. I added the 
> workaround from Marshall there (at least temporarily) and most of the errors 
> are gone (there's still some stuff about missing JSON classes in the Alchemy 
> module that's not nailed down yet).
> 
> For the XML stuff, there is a plugin to m2e which generates the Java classes 
> to access the XML files as part of the build process. On Kepler and with the 
> svn trunk version, Eclipse should be able to find this plugin as a quick-fix 
> measure. Otherwise, you can try to install it manually from
> 
> - Eclipse -> Preferences -> Maven -> Discovery -> Open Catalog 
> - Install "m2e connector for xmlbeans"
> 
> An additional Eclipse plugin that might be required is the "Tycho Project 
> Configurators" which interface the OSGi-aspects of the POMs with m2e.
> 
> -- Richard
> 
> 
> On 01.11.2013, at 03:26, digital paula <[email protected]> wrote:
> 
> > First of all, thanks Marshall and Richard for the prompt reply.   I started 
> > a new import for maven project from SCM for the regex annotator in eclipse. 
> >    When the maven screen appeared stating a problem with 
> > uima-build-helper-maven-pluginmaven-dependency-plugin, I just selected to 
> > resolve later then in the project I pasted Marshall's update to the POM 
> > file.    The two errors that showed in the Problem area disappeared leaving 
> > one error which just required a maven update project to resolve.
> > 
> > However when I tried to execute CVD again, I got the same error:   
> > Caused by: java.lang.ClassNotFoundException: 
> > schemaorg_apache_xmlbeans.system.s4DE0C4BDB0BE7CAF27A97C2453FE4641.TypeSystemHolder
> > 
> > What I didn't check last time was the log file in CVD,  which is pretty 
> > much most of the same error however it states this one below which only 
> > shows if the log is set to show everything.
> > 
> > org.apache.uima.tools.cvd.MainFrame.handleException(528): SEVERE: Could not 
> > initialize class org.apache.incubator.uima.regex.ConceptSetDocument
> > java.lang.NoClassDefFoundError: Could not initialize class 
> > org.apache.incubator.uima.regex.ConceptSetDocument
> > Based on some of the research I've done on xmlbeans it appears that two 
> > jars are required: xml-beans and jsr173_1.0_api.   The maven dependencies 
> > folder only have the first one.    In addition,  the generated CLASS and 
> > XSB files seem to also need to be bundled into a jar (done using SCOMP tool 
> > that comes with xmlbeans).    Note that I had to include xml-beans2.4.0 on 
> > the runtime classpath or else I got an xmlbeans class error and never would 
> > have got to the error I encountered if I hadn't included the xmlbeans jar 
> > on runtime classpath.   I just added it as an external jar and pointed to 
> > the one in the regex annotator maven dependency folder.   If I could get 
> > the jsr173_1.0_api and class/XSB jar, I would put them in the maven 
> > dependency folder as well and add toruntime classpath......could I give 
> > that a try?  
> > 
> > I'm not sure if this is the solution but I would love to give it a try,  if 
> > you guys could provide me the Class/XSB jar  and jsr173_1.0 jar(I think i 
> > would need it for xml 2.4.0) and I'll add to the maven dependencies folder 
> > and runtime classpath.    I'll be willing to test out and if it works you 
> > guys can add it to the maven dependencies and add revision to the regex 
> > install web page so other users don't run into the same problem that I did 
> > when trying to install/use the regex annotator.    
> > Regards,Paula
> 


                                          

Reply via email to