Re: Maven project can't access class file.

2011-10-10 Thread Christophe
Hi,

I have the same issue. After renaming my projects, maven cannot resolve
dependencies anymore. I check the projects group ids, artifacts ids, and
versions. All looks fine but I have a similar message than the one you
described.

I have the following error :
[ERROR]
\workspaces\workspace-pm\project\src\main\java\com\company\portal\emc\WBEMConstants.java:[9,0]
cannot access GenericClient [ERROR] file GenericClient.class not found

But the GenericClient class exists.

I also founded the following error :
[ERROR] found   : com.company.portal.common.model.Discovery
[ERROR] required: Discovery

I think that dependency is resolved against the simple name, that's why
classes are not found (it should resolve it with their full name). But how
can I fix it ?


Do you have solve this issue ?
Any help would be welcomed.

Thanks,
Christophe.


--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-project-can-t-access-class-file-tp4599976p4888217.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven project can't access class file.

2011-10-10 Thread Wayne Fay
 [ERROR]
 \workspaces\workspace-pm\project\src\main\java\com\company\portal\emc\WBEMConstants.java:[9,0]
 cannot access GenericClient [ERROR] file GenericClient.class not found

 [ERROR] found   : com.company.portal.common.model.Discovery
 [ERROR] required: Discovery

These errors are coming out of the javac compiler.

Use mvn -X compile to see more details. Then copy and paste the
compile line that Maven reports and try that with javac directly. This
may simply be a bug in the javac compiler or something along those
lines OR you will notice something wonky in the classpath provided to
javac that will cause you to adjust your dependencies.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven project can't access class file.

2011-07-18 Thread Jeff Bennett
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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Re: Maven project can't access class file.

2011-07-18 Thread Barrie Treloar
I can't see anything wrong with what you are doing so far.

Is this code on an accessible repository?

A stupid thing to ask, but there is an import statement for
JCasAnnotator_ImplBase in FileAnnotator?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org