Reputation: 584
After running the maven clean
,
when I run the maven install
command, I get several package ... does not exist
errors for the imports.
However, I checked, and the packages do exist, and they are there, under the "Maven Dependencies" folder. With the F3 shortcut, I can open the declaration also, and read the source code.
The Eclipse's code syntax check does not show any error.
What can be the problem?
Upvotes: 1
Views: 1811
Reputation: 328760
A common cause for this is that you're mixing compile
and test
scope. Check the scope of your dependency (test
scoped deps are gray in the Dependency View). Those dependencies are not available for code under src/main/java/
.
Upvotes: 4