Hello All, I've been Googling frantically trying to figure out what the problem is with my project, and nothing has answered my question so far. The error I'm getting is:
COMPILATION ERROR :
-------------------------------------------------------------
com/orbis/stanfordannotator/FileAnnotator.java:[23,40] cannot access
JCasAnnotator_ImplBase
class file for JCasAnnotator_ImplBase not found
StanfordCoreNLPAnnotator.getDescription(), "Default");
1 error
-------------------------------------------------------------
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 5.797s
Finished at: Mon Jul 18 10:55:34 EDT 2011
Final Memory: 5M/83M
------------------------------------------------------------------------
Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile)
on project StanfordAnnotator: Compilation failure
\Users\jbennett\Documents\NetBeansProjects\StanfordAnnotator\src\main\java\com\orbis\stanfordannotator\FileAnnotator.java:[23,40]
cannot access JCasAnnotator_ImplBase
class file for JCasAnnotator_ImplBase not found
StanfordCoreNLPAnnotator.getDescription(), "Default");
-> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the
following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
The class file is definitely there. I'm building the project with the Maven
plugin for NetBeans 7.0 and I can browse directly to it in the project tree.
The full package name for JCasAnnotator_ImplBase is
org.apache.uima.analysis_component.JCasAnnotator_ImplBase, which is in the
uimaj-core-2.3.1.jar file all of which can be seen by the NetBeans project
browser. Attached is my pom.xml file. I would appreciate any feedback on why
I can't seem to convince Maven that it's actually there. Here's what I've
tried so far:
1.) Currently I'm building with Maven 3.0.3. I've tried building with 2.2.1
and got the same issue.
2.) I've built it with eclipse and NetBeans in Ubuntu 10.10 as well as
Windows 7 professional.
3.) I've deleted my local JARs and had maven reload them at install time.
4.) I've re-imported the entire project into NetBeans.
5.) I've deleted the entire project and done a fresh SVN checkout.
6.) I've also tried toying with the scope element in the pom.xml file, but I
admittedly don't know much about that. I saw it on Google and thought I'd give
it a shot.
Thanks in advance for the help!
--
Jeff Bennett
pom.xml
Description: pom.xml
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
