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: [email protected]
> To: [email protected]
> 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
> >
> >
> >
> >
> >
> >
> >
>