user2018675 user2018675 - 4 months ago 5x
Java Question

Classes packages don't include, however it is there and eclipse complains about it

I've downloaded an open source library which has the source laid out like this:

However the source files always have their package name omitting the
part, for example:


and eclipse complains about it. Of course I could rename each file, but there are dozens of files and I'm pretty sure I'm missing something.

doesn't have any references to

What could be the cause of it, and how to fix it? I believe it might related to eclipse.


There is nothing wrong with your library... Since this is a Maven project, /src/main/java is the default directory layout :

You shouldn't touch the build path since this is managed by the Maven Plugin in Eclipse.

Try a right-click - Maven - Update.