You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by digital paula <cy...@hotmail.com> on 2013/11/01 03:26:34 UTC

RE: Eclipse m2e complains about unmapped maven plugins






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
 
> Date: Thu, 31 Oct 2013 15:40:21 -0400
> From: msa@schor.com
> To: user@uima.apache.org
> Subject: Re: Eclipse m2e complains about unmapped maven plugins
> 
> This issue is noted in the Jira: https://issues.apache.org/jira/browse/UIMA-3391
> 
> There's a work-around you can try:
> 
> Add the following to your local checkout of the
> RegularExpressionAnnotator/pom.xml file at the bottom of the file, just before
> the closing </project> element:
> 
>      <profiles>
>          <profile>
>       <id>m2e</id>
>       <activation>
>         <property>
>           <name>m2e.version</name>
>         </property>
>       </activation>
>       <build>
>         <pluginManagement>
>           <plugins>
>          
>             <!--This plugin's configuration is used to store Eclipse m2e settings
>                 only. It has no influence on the Maven build itself. -->
>             <plugin>
>               <groupId>org.eclipse.m2e</groupId>
>               <artifactId>lifecycle-mapping</artifactId>
>               <version>1.0.0</version>
>               <configuration>
>                 <lifecycleMappingMetadata>
>                   <pluginExecutions>
>                  
>                     <!-- ***************************** -->
>                     <!-- IGNORE remote resources       -->
>                     <!-- ***************************** -->
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>
>                           maven-remote-resources-plugin
>                         </artifactId>
>                         <versionRange>[1,)</versionRange>
>                         <goals>
>                           <goal>process</goal>
>                           <goal>bundle</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <ignore />
>                       </action>
>                     </pluginExecution>
>                    
>                     <!-- ***************************** -->
>                     <!-- EXECUTE parse-date-time       -->
>                     <!-- ***************************** -->
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.apache.uima</groupId>
>                         <artifactId>
>                           uima-build-helper-maven-plugin
>                         </artifactId>
>                         <versionRange>[2,)</versionRange>
>                         <goals>
>                           <goal>parse-date-time</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <execute />
>                       </action>
>                     </pluginExecution>
>                    
>                     <!-- ******************************* -->
>                     <!-- IGNORE dependency copy / unpack -->
>                     <!-- ******************************* -->
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>maven-dependency-plugin</artifactId>
>                         <versionRange>[2,)</versionRange>
>                         <goals>
>                           <goal>unpack</goal>
>                           <goal>copy-dependencies</goal>
>                           <goal>unpack-dependencies</goal>
>                           <goal>copy</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <ignore />
>                       </action>
>                     </pluginExecution>
>                    
>                     <!-- *********************************************** -->
>                     <!-- IGNORE enforcer - to avoid warning message      -->
>                     <!-- https://issues.apache.org/jira/browse/UIMA-3053 -->
>                     <!-- *********************************************** -->
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>maven-enforcer-plugin</artifactId>
>                         <versionRange>[1,)</versionRange>
>                         <goals>
>                           <goal>enforce</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <ignore />
>                       </action>
>                     </pluginExecution>                   
>    
>                     <!-- ******************************* -->
>                     <!-- IGNORE clearing old Manifest.MF -->
>                     <!-- at top level, needed by         -->   
>                     <!-- maven bundle plugin             -->
>                     <!-- ******************************* -->
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>maven-antrun-plugin</artifactId>
>                         <versionRange>[1.6,)</versionRange>
>                         <goals>
>                           <goal>run</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <ignore />
>                       </action>
>                     </pluginExecution>
> 
>                     <!-- *********************************************** -->
>                     <!-- EXECUTE most javacc goals                       -->
>                     <!-- *********************************************** -->
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.codehaus.mojo</groupId>
>                         <artifactId>javacc-maven-plugin</artifactId>
>                         <versionRange>[2,)</versionRange>
>                         <goals>
>                           <goal>javacc</goal>
>                           <goal>jjtree-javacc</goal>
>                           <goal>jjtree</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <execute />
>                       </action>
>                     </pluginExecution>                   
> 
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.codehaus.mojo</groupId>
>                         <artifactId>javacc-maven-plugin</artifactId>
>                         <versionRange>[2,)</versionRange>
>                         <goals>
>                           <goal>jjdoc</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <ignore />
>                       </action>
>                     </pluginExecution>  
>                    
>                     <!-- ***************************** -->
>                     <!-- IGNORE bundle manifest        -->
>                     <!-- ***************************** -->
>                     <pluginExecution>
>                       <pluginExecutionFilter>
>                         <groupId>org.apache.felix</groupId>
>                         <artifactId>
>                           maven-bundle-plugin
>                         </artifactId>
>                         <versionRange>[1,)</versionRange>
>                         <goals>
>                           <goal>manifest</goal>
>                         </goals>
>                       </pluginExecutionFilter>
>                       <action>
>                         <ignore />
>                       </action>
>                     </pluginExecution>
>                                     
>                   </pluginExecutions>
>                 </lifecycleMappingMetadata>
>               </configuration>
>             </plugin>
>           </plugins>
>         </pluginManagement>
>       </build>
>     </profile>     
>   </profiles>
> 
> This is a copy, mostly, of what is in the uima-wide parent pom for configuring
> m2e.  The additions are for the Jira issue above.
> 
> This stuff just tells Eclipse not to "build" this project beyond the basic Java
> compiling of the sources.
> 
> It should build OK outside of Eclipse, if you need to do that.
> 
> -Marshall
> 
> On 10/31/2013 2:36 PM, digital paula wrote:
> > Forget my last post I was headed completely in the wrong direction.   
> >  
> > Okay so I went back to the original issue I had with the maven import of the regex annotator using the maven import of this svn url:   https://svn.apache.org/repos/asf/uima/addons/tags/uima-addons-2.3.1/RegularExpressionAnnotator
> >  
> > During import there was a problem with the maven import of the regex annotator, there was an error with the "uima-build-helper-maven-plugin".   I searched the web for the error and found this Jira for exactly the problem I'm having.  
> > "Eclipse m2e complains about unmapped maven plugins"
> >  
> > https://issues.apache.org/jira/browse/UIMA-2560
> >  
> > ---------------description from jira---------------------------------------
> > Recent versions of Eclipse m2e complain about Maven plugins in the UIMA master pom not being covered by m2e lifecycle plugins:
> > uima-build-helper-maven-pluginmaven-dependency-pluginAdd m2e metadata to the master POM to handle these.
> > ----------------------------------------------------------------------------------
> >  
> > I'm relatively new to UIMA, started working with it a few works ago.   I had no problem installing the UIMA Framework and running through the examples in the tutorial (just couldn't do the semantic search since it's been removed).  By the way, the documentation provided for UIMA is great along with the getting started section.     
> >  
> > This is the first addon that I've tried to work with and so far I've devoted a few days already trying to get the regex addon to work, I really would love to see how it works.  Can someone who has been able to get it to work provide some guidance?   I see that the jira was opened in Jan 2013 and resolved this past April so I don't understand why I'm still getting the problem that was supposedly resolved.  I'm using  Juno (eclipse IDE for java developers) with service release 2 if that helps any.   
> >  
> > Thanks.
> >  
> > Regards,
> > Paula
> >  
> >  
> >  
> >  
> >  
> >  
> >  		 	   		  
> 


 		 	   		  

RE: Eclipse m2e complains about unmapped maven plugins - SOLVED!

Posted by digital paula <cy...@hotmail.com>.
Hey Marshall,  
 
I'm running Eclipse Juno with service release 2 and maven plugin is for XML 2.3.3, it works correctly and the generated-classes were created as noted earlier.  
 
I figured it out, I was originally headed in the right direction but it was Richard's email earlier today about the generated classes from the maven with xml beans plug  that had me realizing that  I really need to understand XML beans enough to figure what all these generated classes were doing.  Also, what the purpose of the xsb file that got generated from the maven xml beans plugin is for.    So I looked further into XML Beans to better understand it's purpose and combined with the error I kept getting, I realized what needed to be done.
 
SOLUTION:
The generated-classes folder that maven xml plugin is not enough.   The jar consisting of the classes and .xsb files is required.  What I didn't realize is that all I needed was already provided in the project to generate the jar myself (this is the jar that I kept pleading w/you guys to give me.  :-)   All that's needed to generate the jar is the concept.xsd file.  I generated a concept.jar file using scomp from the XML Beans/lib folder from within the regex annotator folder.  What's critical is that the jar itself has to be added to the project classpath and runtime classpath.   
 
I ran CVD and selected the regex annotator descriptor and....eureka!!!! The regex annotator is now working!!!!!!
 
I think this will solve all the issues with the annotators that use XML Beans, if they don't already have the jar.  Just generate the jar file and include the POM so maven adds it to the referenced library for the project space.  Probably should have installation instructions or install.txt in each project, to instruct user to add the jar to runtime classpath.
 
I'm just so happy it's working, I spent several days trying to resolve this and it's done but I couldn't have done it without you and Richard.
 
Thanks.
 
Regards,
Paula

 

 
> Date: Fri, 1 Nov 2013 21:16:44 -0400
> From: msa@schor.com
> To: user@uima.apache.org
> Subject: Re: Eclipse m2e complains about unmapped maven plugins
> 
> Hi Paula,
> 
> What version of eclipse are you running, and what version of m2e plugin did you
> install?
> 
> The XMLBeans stuff is built using a maven plugin, which m2e should be configured
> to run as part of the Eclipse-build.
> 
> I checked my build, and found that after I do an Eclipse "clean", the build
> generates the classes in target/generate-classes/xmlbeans/...
> 
> -----------
> I tried an experiment: I started with a brand-new unzip of Eclipse 4.3.1 (the
> current level), started it up, and installed the m2e plugin using the Eclipse ->
> Help -> Install new Software, picked the .../releases/kepler site,
> expanded the "collaboration" tab, and installed m2e from there.
> 
> Then (in a new workspace), I imported the "existing maven projects" for the
> addons; I imported only the uima-addons-parent.  In that pom, I then used
> Eclipse to change the parent pom version from 4 to 7.
> 
> Then I imported (existing maven projects) just the RegularExpressionAnnotator. 
> After selecting it, the next screen showed "SetupMaven Plugin connectors, and
> included one named :xmlbeans-maven-plugin:2.3.3:xmlbeans, with the action to
> "Install m2e connector for XmlBeans Maven plugin,
> http://mojo.codehaus.org/xmleans-maven-plugin".  This is the m2e connector that
> should produce the right setup to get the xmlbeans handled and compiled.
> 
> The m2e setup the build path with an extra entry (you can see by right-clicking
> the RegularExpressionAnnotator Eclipse project in Eclipse package explorer,
> picking build-path -> configure build path, and looking in the tab "Source",
> scroll to the bottom, and you should see an entry specifying
> RegularExpressionAnnotator/target/generated-sources/xmlbeans  and Output folder:
> RegularExpressionAnnotator/target/classes
> 
> If this isn't working for you the most likely cause might be the version of
> Eclipse and/or m2e.  Mine are 4.3.1 and 1.4.0.20130601-0317
> 
> HTH. -Marshall
> On 11/1/2013 1:29 PM, digital paula wrote:
> > 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: cybersation@hotmail.com
> >> To: user@uima.apache.org
> >> 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: cybersation@hotmail.com
> >> To: user@uima.apache.org
> >> 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: cybersation@hotmail.com
> >> To: user@uima.apache.org
> >> 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: rec@apache.org
> >>> Date: Fri, 1 Nov 2013 16:34:56 +0100
> >>> To: user@uima.apache.org
> >>>
> >>> On 01.11.2013, at 16:24, digital paula <cy...@hotmail.com> 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: rec@apache.org
> >>>>> Date: Fri, 1 Nov 2013 10:23:44 +0100
> >>>>> To: user@uima.apache.org
> >>>>>
> >>>>> 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 <cy...@hotmail.com> 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
> >>>>
> >>>> 		 	   		  
> >>  		 	   		   		 	   		   		 	   		  
> >  		 	   		  
> 
 		 	   		  

Re: Eclipse m2e complains about unmapped maven plugins

Posted by Marshall Schor <ms...@schor.com>.
Hi Paula,

What version of eclipse are you running, and what version of m2e plugin did you
install?

The XMLBeans stuff is built using a maven plugin, which m2e should be configured
to run as part of the Eclipse-build.

I checked my build, and found that after I do an Eclipse "clean", the build
generates the classes in target/generate-classes/xmlbeans/...

-----------
I tried an experiment: I started with a brand-new unzip of Eclipse 4.3.1 (the
current level), started it up, and installed the m2e plugin using the Eclipse ->
Help -> Install new Software, picked the .../releases/kepler site,
expanded the "collaboration" tab, and installed m2e from there.

Then (in a new workspace), I imported the "existing maven projects" for the
addons; I imported only the uima-addons-parent.  In that pom, I then used
Eclipse to change the parent pom version from 4 to 7.

Then I imported (existing maven projects) just the RegularExpressionAnnotator. 
After selecting it, the next screen showed "SetupMaven Plugin connectors, and
included one named :xmlbeans-maven-plugin:2.3.3:xmlbeans, with the action to
"Install m2e connector for XmlBeans Maven plugin,
http://mojo.codehaus.org/xmleans-maven-plugin".  This is the m2e connector that
should produce the right setup to get the xmlbeans handled and compiled.

The m2e setup the build path with an extra entry (you can see by right-clicking
the RegularExpressionAnnotator Eclipse project in Eclipse package explorer,
picking build-path -> configure build path, and looking in the tab "Source",
scroll to the bottom, and you should see an entry specifying
RegularExpressionAnnotator/target/generated-sources/xmlbeans  and Output folder:
RegularExpressionAnnotator/target/classes

If this isn't working for you the most likely cause might be the version of
Eclipse and/or m2e.  Mine are 4.3.1 and 1.4.0.20130601-0317

HTH. -Marshall
On 11/1/2013 1:29 PM, digital paula wrote:
> 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: cybersation@hotmail.com
>> To: user@uima.apache.org
>> 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: cybersation@hotmail.com
>> To: user@uima.apache.org
>> 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: cybersation@hotmail.com
>> To: user@uima.apache.org
>> 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: rec@apache.org
>>> Date: Fri, 1 Nov 2013 16:34:56 +0100
>>> To: user@uima.apache.org
>>>
>>> On 01.11.2013, at 16:24, digital paula <cy...@hotmail.com> 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: rec@apache.org
>>>>> Date: Fri, 1 Nov 2013 10:23:44 +0100
>>>>> To: user@uima.apache.org
>>>>>
>>>>> 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 <cy...@hotmail.com> 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
>>>>
>>>> 		 	   		  
>>  		 	   		   		 	   		   		 	   		  
>  		 	   		  


RE: Eclipse m2e complains about unmapped maven plugins

Posted by digital paula <cy...@hotmail.com>.
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: cybersation@hotmail.com
> To: user@uima.apache.org
> 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: cybersation@hotmail.com
> To: user@uima.apache.org
> 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: cybersation@hotmail.com
> To: user@uima.apache.org
> 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: rec@apache.org
> > Date: Fri, 1 Nov 2013 16:34:56 +0100
> > To: user@uima.apache.org
> > 
> > On 01.11.2013, at 16:24, digital paula <cy...@hotmail.com> 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: rec@apache.org
> > >> Date: Fri, 1 Nov 2013 10:23:44 +0100
> > >> To: user@uima.apache.org
> > >> 
> > >> 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 <cy...@hotmail.com> 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
> > >> 
> > > 
> > > 
> > > 		 	   		  
> > 
>  		 	   		   		 	   		   		 	   		  
 		 	   		  

RE: Eclipse m2e complains about unmapped maven plugins

Posted by digital paula <cy...@hotmail.com>.
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: cybersation@hotmail.com
To: user@uima.apache.org
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: cybersation@hotmail.com
To: user@uima.apache.org
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: rec@apache.org
> Date: Fri, 1 Nov 2013 16:34:56 +0100
> To: user@uima.apache.org
> 
> On 01.11.2013, at 16:24, digital paula <cy...@hotmail.com> 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: rec@apache.org
> >> Date: Fri, 1 Nov 2013 10:23:44 +0100
> >> To: user@uima.apache.org
> >> 
> >> 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 <cy...@hotmail.com> 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
> >> 
> > 
> > 
> > 		 	   		  
> 
 		 	   		   		 	   		   		 	   		  

RE: Eclipse m2e complains about unmapped maven plugins

Posted by digital paula <cy...@hotmail.com>.
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: cybersation@hotmail.com
To: user@uima.apache.org
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: rec@apache.org
> Date: Fri, 1 Nov 2013 16:34:56 +0100
> To: user@uima.apache.org
> 
> On 01.11.2013, at 16:24, digital paula <cy...@hotmail.com> 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: rec@apache.org
> >> Date: Fri, 1 Nov 2013 10:23:44 +0100
> >> To: user@uima.apache.org
> >> 
> >> 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 <cy...@hotmail.com> 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
> >> 
> > 
> > 
> > 		 	   		  
> 
 		 	   		   		 	   		  

RE: Eclipse m2e complains about unmapped maven plugins

Posted by digital paula <cy...@hotmail.com>.
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: rec@apache.org
> Date: Fri, 1 Nov 2013 16:34:56 +0100
> To: user@uima.apache.org
> 
> On 01.11.2013, at 16:24, digital paula <cy...@hotmail.com> 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: rec@apache.org
> >> Date: Fri, 1 Nov 2013 10:23:44 +0100
> >> To: user@uima.apache.org
> >> 
> >> 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 <cy...@hotmail.com> 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
> >> 
> > 
> > 
> > 		 	   		  
> 
 		 	   		  

Re: Eclipse m2e complains about unmapped maven plugins

Posted by Richard Eckart de Castilho <re...@apache.org>.
On 01.11.2013, at 16:24, digital paula <cy...@hotmail.com> 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: rec@apache.org
>> Date: Fri, 1 Nov 2013 10:23:44 +0100
>> To: user@uima.apache.org
>> 
>> 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 <cy...@hotmail.com> 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
>> 
> 
> 
> 		 	   		  


RE: Eclipse m2e complains about unmapped maven plugins

Posted by digital paula <cy...@hotmail.com>.
I'm just reposting to add returns to make it easier to read. 
From: cybersation@hotmail.com
To: user@uima.apache.org
Subject: RE: Eclipse m2e complains about unmapped maven plugins
Date: Fri, 1 Nov 2013 11:24:29 -0400










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: rec@apache.org
> Date: Fri, 1 Nov 2013 10:23:44 +0100
> To: user@uima.apache.org
> 
> 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 <cy...@hotmail.com> 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
> 


 		 	   		   		 	   		  

RE: Eclipse m2e complains about unmapped maven plugins

Posted by digital paula <cy...@hotmail.com>.





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: rec@apache.org
> Date: Fri, 1 Nov 2013 10:23:44 +0100
> To: user@uima.apache.org
> 
> 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 <cy...@hotmail.com> 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
> 


 		 	   		  

Re: Eclipse m2e complains about unmapped maven plugins

Posted by Richard Eckart de Castilho <re...@apache.org>.
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 <cy...@hotmail.com> 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