Richard,
 
I 've thought about this some more.   The xml plugin for m2e appears to only 
create the generated source directory:   target/generated-sources/xmlbeans in 
the project.   However,  I believe what's needed is a directory for 
target/generated-classes/xmlbeans.  
 
I'm just not experienced enough with maven so I don't want to mess with the POM 
file.   Do you know how to modify the POM file to include in the regAnnotator 
project a package for target/generated-classes/xmlbeans?  This would be 
identical to what's there for target/generated-sources/xmlbeans but would just 
contain the generated classes.   
 
Regards,
Paula
 
> From: [email protected]
> To: [email protected]
> Subject: RE: Eclipse m2e complains about unmapped maven plugins
> Date: Fri, 1 Nov 2013 13:01:49 -0400
> 
> oops.  the error I posted was from stack overflow.
>  
> My error is similar but with different string after system....: 
>  
> Caused by: java.lang.ClassNotFoundException:\
> schemaorg_apache_xmlbeans.system.s4DE0C4BDB0BE7CAF27A97C2453FE4641.TypeSystemHolder
>  
> From: [email protected]
> To: [email protected]
> Subject: RE: Eclipse m2e complains about unmapped maven plugins
> Date: Fri, 1 Nov 2013 13:00:00 -0400
> 
> 
> 
> 
> Richard,
>  
> With regards to your last comment:
>  
> 3.   I believe the xml beans plugin for m2e should take care of generating 
> these classes. If you add the project to the CVD run configuration, I would 
> hope they get picked up. Please try that and get back to us if that does not 
> work or if you get different errors.   
>  
> You are correct, the xml beans plugin for m2e does take care of generating 
> these classes. I went back online to see what's in the trunk before install 
> and I didn't see a target folder:
> https://svn.apache.org/repos/asf/uima/addons/trunk/RegularExpressionAnnotator/
>  
> After import there is a target folder with the two folders:  
> generating-classes and generating-source.    But it's still resulting in the 
> error.    So I've had the target folder all along containing the generated 
> classes...made no difference still got the same error below.
>  
> Caused by: java.lang.ClassNotFoundException: 
> schemaorg_apache_xmlbeans.system.s8
>  B21CFFFCFED0B2438C2585C61F113F7.TypeSystemHolder
>  
> Regards,
> Paula
>  
> From: [email protected]
> To: [email protected]
> Subject: RE: Eclipse m2e complains about unmapped maven plugins
> Date: Fri, 1 Nov 2013 12:27:00 -0400
> 
> 
> 
> 
> Thanks again Richard for the prompt reply.  Also,  I went back and checked 
> out the top level to get all the modules in one install.  Cool.... thanks for 
> that tip.  
>  
> Okay, I just copied/pasted salient comments you wrote along w/enumeration for 
> readability.  
> 
> 1.   you need to manually add the projects that you want to use (not the 
> JARs) in the CVD run configuration in Eclipse, so that the tool finds them… 
> or did you run the CVD from the command line?
>  
> Paula's comment:  I'm running CVD (GUI) java application in Eclipse.  Yes, I  
> already had the regex annotator project added in the CVD run configuration, 
> as a user entry in the Classpath tab.    Kudos to the UIMA documentation 
> which explains that very well.  :-)  But to be sure I set it up properly I've 
> attached a screen capture of my run config (classpath tab) screen for CVD 
> tool.   Does it look correct?  
>  
> 2.  Caused by: java.lang.ClassNotFoundException: 
> schemaorg_apache_xmlbeans.system.s8
>  B21CFFFCFED0B2438C2585C61F113F7.TypeSystemHolder
>  
>  These names sound very odd…
> Paula's comment:  what seems odd about it?  Okay, I'm new to maven and I'm 
> not sure exactly what the B21...means but I know it's a folder that gets 
> created after generating classes (xmlbeans generation) and the system folder 
> has a folder with this long string.  
> 
> 3.   I believe the xml beans plugin for m2e should take care of generating 
> these classes. If you add the project to the CVD run configuration, I would 
> hope they get picked up. Please try that and get back to us if that does not 
> work or if you get different errors.   
>  
> Paula's comment:  assuming that I had correctly added the project to the CVD 
> tool to begin with(screen capture illustrates what my setup has been all 
> along for the CVD run config) the error below is what I get/have been 
> getting.   
>  
> Caused by: java.lang.ClassNotFoundException:\
> schemaorg_apache_xmlbeans.system.s4DE0C4BDB0BE7CAF27A97C2453FE4641.TypeSystemHolder
>  
> However, please let me know if I had something incorrectly set up in CVD run 
> config(screen capture in attachment) and I'll correct and try again.
>  
> Thanks. 
>  
> Regards,
> Paula
>  
> > Subject: Re: Eclipse m2e complains about unmapped maven plugins
> > From: [email protected]
> > Date: Fri, 1 Nov 2013 16:34:56 +0100
> > To: [email protected]
> > 
> > On 01.11.2013, at 16:24, digital paula <[email protected]> wrote:
> > 
> > > 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…..
> > 
> > I usually check our the top-level project from 
> > https://svn.apache.org/repos/asf/uima/addons/trunk - this includes all the 
> > individual modules.
> > 
> > > 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.
> > 
> > Ok.
> > 
> > > 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?  
> > 
> > Yes, I meant build errors.
> > 
> > > 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?
> > 
> > I didn't try that. I haven't used these tools for ages, but if I remember 
> > correctly, you need to manually add the projects that you want to use (not 
> > the JARs) in the CVD run configuration in Eclipse, so that the tool finds 
> > them… or did you run the CVD from the command line?
> > 
> > > 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.
> > 
> > Some of the plugins are mapped to work (e.g. the XML beans thing), some are 
> > mapped to be ignored, because they are not needed for m2e builds (e.g. the 
> > maven dependencies plugin goals).
> > 
> > > 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
> > 
> > These names sound very odd…
> > 
> > > Could I receive the jar consisting of the generated classes with XMLBeans 
> > > from an xsd file?
> > 
> > See below.
> > 
> > > 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.    
> > 
> > I believe the xml beans plugin for m2e should take care of generating these 
> > classes. If you add the project to the CVD run configuration, I would hope 
> > they get picked up. Please try that and get back to us if that does not 
> > work or if you get different errors.
> > 
> > -- Richard
> > 
> > > 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