在eclipse中 我maven项目依赖了其他项目某个jar A, 但A所依赖的其他包都没被依赖进来,导致项目飘红。咋弄呢?反复删掉重新svn,maven更新啥的都没变化,求解~
说得不够详细,eclipse中依赖树是可视化的,有子依赖的话 会自动折叠成一个小三角形,但是很奇怪A的依赖旁边没有这个小三角形.......但是在其他机器上又是好的...
PHPz2017-04-21 11:17:46
If you are using a public server instead of a private server, you should consider whether the package that a certain jar A depends on exists on the public server. If it is a private server, upload a copy if it does not exist
伊谢尔伦2017-04-21 11:17:46
mvn dependency:tree -Dverbose
to look at the dependency treePHP中文网2017-04-21 11:17:46
Looking at the poster’s problem, it seems that the local project depends on the local project.
Check if there are any errors in the pom.xml of project A. As long as there is an error, other dependencies will be red.
Usually eclipse has prompts.
巴扎黑2017-04-21 11:17:46
That’s because the transitivity of other dependencies in the jar A you depend on is not set up properly