Sunday, 15 January 2012

java - Why do I get "package does not exist" error when I run maven install? -



java - Why do I get "package does not exist" error when I run maven install? -

after running maven clean, when run maven install command, several package ... not exist errors imports.

however, checked, , packages exist, , there, under "maven dependencies" folder. f3 shortcut, can open declaration also, , read source code.

the eclipse's code syntax check not show error.

what can problem?

a mutual cause you're mixing compile , test scope. check scope of dependency (test scoped deps grayness in dependency view). dependencies not available code under src/main/java/.

java eclipse maven package pom.xml

No comments:

Post a Comment