You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Christophe <ch...@sentrysoftware.net> on 2011/10/10 15:37:44 UTC

Re: Maven project can't access class file.

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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven project can't access class file.

Posted by Wayne Fay <wa...@gmail.com>.
> [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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org